http://mamchenkov.net/wordpress/2004/05/10/vim-for-perl-developers/3/
pretty old, but still useful one
i partially changed my vim config after reading it, and while most of the tips were useless for me, article is worth to be mentioned.
i've added "set nowrap", but ignored syntax hilighting, indentation, completion, and windows/buffers sections 'cause i'm not really a vim noob, and the sections are outdated, and vim already at version 7, and has tabs, etc..
section about diff is interesting, but useless for my environment (we use cvs)
marks are useful, i used them long time ago, but stopped for some reason.. gonna give it another try :)
vertical indenting (list option) section is outdated and doesn't work as-is in vim7, though it is useless for me too.
i skipped color schemes section too, though i'd like to mention xterm16 vim color theme which is very nice and useful. grab it here now! :)
tags explorer plugin is very nice, so i recommend it too. will use it frequently.
perl syntax checker through setting 'makeprog' via some perl.vim script is not what i'd like to have..
i use normal makefiles extensively in my perl projects as well as in c, c++, and python projects, so this script breaks everything for me.
what i do for syntax checking is add 'check' target to my Makefile and call perl -Wc for each sourcefile (of course, "make check" is key-bound).
perldoc section is not interesting to me 'cause i don't use it (yet?)
and some personal additions from my .vimrc :)
" escape selected URI
" it escapes whole strings.. if someone knows how to escape only selected text - please let me know
vmap <C-K><C-E> :perldo use URI::Escape; $_=uri_escape($_);<CR>
" specify error format for perl -Wc (taken from perl.vim)
autocmd BufNewFile,BufRead *.p? set errorformat=
\%-G%.%#had\ compilation\ errors.,
\%-G%.%#syntax\ OK,
\%m\ at\ %f\ line\ %l.,
\%+A%.%#\ at\ %f\ line\ %l\\,%.%#,
\%+C%.%#

0 comments:
Post a Comment