summaryrefslogtreecommitdiffstats
path: root/vim/ftplugin
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-06-16 12:50:58 -0400
committerJesse Luehrs <doy@tozt.net>2014-06-16 12:51:18 -0400
commit99493bdad00714a93d4cad1772339a70c4043da3 (patch)
treefe8ddf54f681858318096e09fa53d1efcef9d696 /vim/ftplugin
parent721749afb40d4746b4f64face2ba20e27375dced (diff)
downloadconf-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.vim4
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\)\>'