[ABE.pm] cool vimrc ideas

Ted Fiedler fiedlert at gmail.com
Wed Jun 21 21:40:26 PDT 2006


> " comment out blocks
> " ma to mark beginning
> " put cursor at the end and hit F5
> " code will be commented out
> map <F5> :'a,.s/^/#/gi^M:nohl^M

conversely you can do

map <F6>'a,.s/^#//gi^M:nohl^M

will remove blocks of code in the same manner - I use that for testing
different blocks of
code quickly.

> > " show matching brackets in Perl
> > autocmd FileType perl set showmatch
>
> How is this different from %?

Hmmm.. forgot about that - it doesn't appear to be

Ted

-- 
"The Buddha, the Godhead, resides quite as comfortably in the circuits
of a digital computer or the gears of a cycle transmission as he does
at the top of a mountain or in the petals of a flower."
  -- Robert M Pirsig


More information about the ABE-pm mailing list