diff options
author | doy <doy@tozt.net> | 2009-01-03 01:26:09 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2009-01-03 01:26:09 -0500 |
commit | eed03516376ec595b6cc0c57f13c5e0a57e20480 (patch) | |
tree | 0cd7c20385c57ac40eb0e4ab183eb1691482702e /vim/ftplugin/perl.vim | |
parent | a65a2e3e1e74e1fb79ec98cc1c33a7ebc301f131 (diff) | |
download | conf-eed03516376ec595b6cc0c57f13c5e0a57e20480.tar.gz conf-eed03516376ec595b6cc0c57f13c5e0a57e20480.zip |
move all of the FileType autocommands into files under ftplugin/
Diffstat (limited to 'vim/ftplugin/perl.vim')
-rw-r--r-- | vim/ftplugin/perl.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim new file mode 100644 index 0000000..ecd8f31 --- /dev/null +++ b/vim/ftplugin/perl.vim @@ -0,0 +1,14 @@ +" :make does a syntax check +setlocal makeprg=$VIMRUNTIME/tools/efm_perl.pl\ -c\ %\ $* +setlocal errorformat=%f:%l:%m + +" look up words in perldoc rather than man for K +setlocal keywordprg=perldoc\ -f + +" treat use lines as include lines (for tab completion, etc) +" XXX: it would be really sweet to make gf work with this, but unfortunately +" that checks the filename directly first, so things like 'use Moose' bring +" up the $LIB/Moose/ directory, since it exists, before evaluating includeexpr +setlocal include=\\s*use\\s* +setlocal includeexpr=substitute(v:fname,'::','/','g').'.pm' +exe "setlocal path=" . system("perl -e 'print join \",\", @INC;'") . ",lib" |