James E Keenan wrote:
Could you share that with us? (Adding to new macros to .vimrc is where
I'm *really* Lazy.)
I only know enough vim programming to be dangerous, but:
",v" brings up my .vimrc
",V" reloads it -- making all changes active (have to save first)
map ,v :sp $VIMRC<CR><C-W>_
map <silent> ,V :source $VIMRC<CR>:filetype detect<CR>:exe ":echo 'vimrc
reloaded'"<CR>
That's the first step to being less lazy with your .vimrc. (Second step
might be keeping it under SVN so you can easily bring it with you and
push changes back to your repository.)
One of my favorite handy, hacky things -- easy block comments:
",ic" insert comment mark
",rc" remove comment mark
vmap ,ic :s/^/#/g<CR>:let @/ = ""<CR>
vmap ,rc :s/^#//g<CR>:let @/ = ""<CR>
map ,ic :s/^/#/g<CR>:let @/ = ""<CR>
map ,rc :s/^#//g<CR>:let @/ = ""<CR>
Regards,
David Golden