[ABE.pm] cool vimrc ideas
Faber J. Fedor
faber at linuxnj.com
Wed Jun 21 19:14:45 PDT 2006
On 21/06/06 20:49 -0400, Ted Fiedler wrote:
> " 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
I like this one!
> " show matching brackets in Perl
> autocmd FileType perl set showmatch
How is this different from %?
> " check perl code with :make
> autocmd FileType perl set makeprg=perl\ -c\ %\
> autocmd FileType perl set errorformat=%f:%l:%m
> autocmd FileType perl set autowrite
You just saved me some time!
> and whenevr I type vi .pl - I start with that skeleton...
That's cute. I'm going to start using that one.
> There are others, but those are some of my favorites.
Thanks!
Anyone else?
--
Regards,
Faber Fedor
President
Linux New Jersey, Inc.
908-320-0357
800-706-0701
http://www.linuxnj.com
More information about the ABE-pm
mailing list