VimRCFileBucketize

Anthony Johnson edited this page May 16, 2013 · 1 revision
" Bucketize.vim
"
" Author: Randall Hansen (vim@sonofhans.net)
" Version: .01
" ----------------------------------------------------------------------------
"
" This program is free software; you can redistribute it and/or modify it
" under the terms of the GNU General Public License as published by the Free
" Software Foundation; either version 2 of the License, or (at your option)
" any later version.
"
" This program is distributed in the hope that it will be useful, but WITHOUT
" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
" more details.
"

if exists("loaded_bucketize")
    finish
endif
let loaded_bucketize = 1


map ,' lbi'<ESC>ea'<ESC>
map ," lbi"<ESC>ea"<ESC>
map ,( lbi(<ESC>ea)<ESC>
map ,) lbi( <ESC>ea )<ESC>
map ,[ lbi[<ESC>ea]<ESC>
map ,] lbi[ <ESC>ea ]<ESC>
map ,{ lbi{<ESC>ea}<ESC>
map ,} lbi{ <ESC>ea }<ESC>
map ,q lbiq/ <ESC>ea /<ESC>
map ,qa lbiqa/ <ESC>ea /<ESC>
map ,qq lbiqq/ <ESC>ea /<ESC>
map ,qw lbiqw/ <ESC>ea /<ESC>
map ,qx lbiqx/ <ESC>ea /<ESC>

" jh added 2004-06-23
map ,<space> lbi <ESC>ea <ESC>

imap ,, ,
imap ,' <ESC>lbi'<ESC>ea'<ESC>
imap ," <ESC>lbi"<ESC>ea"<ESC>
imap ,( <ESC>lbi(<ESC>ea)<ESC>
imap ,) <ESC>lbi( <ESC>ea )<ESC>
imap ,[ <ESC>lbi[<ESC>ea]<ESC>
imap ,] <ESC>lbi[ <ESC>ea ]<ESC>
imap ,{ <ESC>lbi{<ESC>ea}<ESC>
imap ,} <ESC>lbi{ <ESC>ea }<ESC>
imap ,q <ESC>lbiq/ <ESC>ea /<ESC>
imap ,qa <ESC>lbiqa/ <ESC>ea /<ESC>
imap ,qq <ESC>lbiqq/ <ESC>ea /<ESC>
imap ,qw <ESC>lbiqw/ <ESC>ea /<ESC>
imap ,qx <ESC>lbiqx/ <ESC>ea /<ESC>

" jh added 2004-06-23
vmap ,<space> <ESC>`>a <ESC>`<i <ESC>

vmap ,' <ESC>`>a'<ESC>`<i'<ESC>
vmap ," <ESC>`>a"<ESC>`<i"<ESC>
vmap ,( <ESC>`>a)<ESC>`<i(<ESC>
vmap ,) <ESC>`>a )<ESC>`<i( <ESC>
vmap ,[ <ESC>`>a]<ESC>`<i[<ESC>
vmap ,] <ESC>`>a ]<ESC>`<i[ <ESC>
vmap ,{ <ESC>`>a}<ESC>`<i{<ESC>
vmap ,} <ESC>`>a }<ESC>`<i{ <ESC>
vmap ,q <ESC>`>a /<ESC>`<iq/ <ESC>
vmap ,qa <ESC>`>a /<ESC>`<iqa/ <ESC>
vmap ,qq <ESC>`>a /<ESC>`<iqq/ <ESC>
vmap ,qw <ESC>`>a /<ESC>`<iqw/ <ESC>
vmap ,qx <ESC>`>a /<ESC>`<iqx/ <ESC>
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.