diff options
author | doy <doy@tozt.net> | 2009-01-04 22:41:59 -0500 |
---|---|---|
committer | doy <doy@tozt.net> | 2009-01-04 22:41:59 -0500 |
commit | 4480f4dfbb761a80fbc822cb5f5cea39397578dc (patch) | |
tree | 563dfd4ccfb1b5555da6c67f7e272d842c735fb7 /vim/ftplugin/perl.vim | |
parent | 40c7695bbbe87610f12d017fb277989bab516285 (diff) | |
download | conf-4480f4dfbb761a80fbc822cb5f5cea39397578dc.tar.gz conf-4480f4dfbb761a80fbc822cb5f5cea39397578dc.zip |
remap gf to something that works on perl 'use' statements
Diffstat (limited to 'vim/ftplugin/perl.vim')
-rw-r--r-- | vim/ftplugin/perl.vim | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim index bbaaafe..5abbcf5 100644 --- a/vim/ftplugin/perl.vim +++ b/vim/ftplugin/perl.vim @@ -19,7 +19,4 @@ endfunction nmap <silent>K :call Help(0, [':'], '<SID>perldoc')<CR> vmap <silent>K :call Help(1, [':'], '<SID>perldoc')<CR> -" 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 +nmap <silent>gf :exe v:count . 'find ' . substitute(expand('<cfile>'), '::', '/', 'g') . '.pm'<CR> |