Vim tricks for Perl

This thread on points to some cool vim support for Perl. I'm not sure I like all the doodads in perl-support.vim, but I did add this to my .vimrc:

autocmd FileType perl :noremap K :!perldoc <cword>
\ <bar><bar> perldoc -f <cword><cr>

Now hitting K in vim runs perldoc or perldoc -f on the word under the cursor.



It's even more useful if you add:
autocmd FileType perl setlocal iskeyword+=:

Then you can perldoc modules, too!

Leave a comment

About this Entry

This page contains a single entry by Andy Lester published on January 23, 2008 9:09 PM.

The man who couldn't refactor was the previous entry in this blog.

Fluent numbers with Acme::Numbers is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Other Perl Sites

Other Swell Blogs

  • geek2geek: An ongoing analysis of how geeks communicate, how we fail and how to fix it.