diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-06-16 12:50:58 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-06-16 12:51:18 -0400 |
commit | 99493bdad00714a93d4cad1772339a70c4043da3 (patch) | |
tree | fe8ddf54f681858318096e09fa53d1efcef9d696 /vim/ftplugin | |
parent | 721749afb40d4746b4f64face2ba20e27375dced (diff) | |
download | conf-99493bdad00714a93d4cad1772339a70c4043da3.tar.gz conf-99493bdad00714a93d4cad1772339a70c4043da3.zip |
don't assume i'm looking for a module if lib/ doesn't exist
Diffstat (limited to 'vim/ftplugin')
-rw-r--r-- | vim/ftplugin/perl.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim index e1cf11b..3649616 100644 --- a/vim/ftplugin/perl.vim +++ b/vim/ftplugin/perl.vim @@ -20,7 +20,9 @@ vmap <buffer> <silent>K :call Help(1, [':'], '<SID>perldoc')<CR> nmap <buffer> <silent>gf :exe v:count . 'find ' . substitute(expand('<cfile>'), '::', '/', 'g') . '.pm'<CR> " XXX: <cfile> is wrong here, need to do something like i do for Help "vmap <buffer> <silent>gf :exe v:count . 'find ' . substitute(expand('<cfile>'), '::', '/', 'g') . '.pm'<CR> -call unite#custom#profile('with_dir', 'context', {'input' : '^lib/ '}) +if isdirectory("lib") + call unite#custom#profile('with_dir', 'context', {'input' : '^lib/ '}) +endif function! s:unpostfix() let postop_pattern = '\<\(if\|unless\|while\|until\|for\)\>' |