Commit 80ae4917 authored by Murukesh Mohanan's avatar Murukesh Mohanan

plugin update

parent 47f2411b
Subproject commit d05bf551a677ac70d5b6de707a7174a97dccd4dd
Subproject commit 5ee7bd2c807384ac51074f8212a4aec5364627b9
Subproject commit fb76dfbca1fbc4ae5a946835135cb32b72be6a66
Subproject commit c88f04cd1abecbc2190dff9241eda67868389032
Subproject commit d1a179d750bd1d136d7f38e69f2c5b8439886de7
Subproject commit de0106e839e6ee21a5dd3c42f1abb7d79d931bdd
Subproject commit b85b550c6cf3c838db5990a3b202069964429f05
Subproject commit a1cfa1175303942ca8cd32454d324a9e56b046fa
Subproject commit 0212c94e31f953378092249bc791eaaa4c5ccb1a
Subproject commit 664b7259ce7b408e1b3affb93f307c0395eb8bbd
......@@ -166,15 +166,19 @@ endif
function! FindInPath(name)
" Force creation of new file for paths beginning with ./
if expand('%') !~ '^[.~]\?/'
let path=&path
" Add any extra directories to the normal search path
set path+=~,~/.vim,/etc
" If :find finds a file, then wipeout the buffer that was created for the "new" file
setlocal bufhidden=wipe
exe 'silent keepalt find! '. fnameescape(expand('<afile>'))
" Restore 'path' and 'bufhidden' to their normal values
let &path=path
set bufhidden<
try
let path=&path
" Add any extra directories to the normal search path
set path+=~,~/.vim,/etc
" If :find finds a file, then wipeout the buffer that was created for the "new" file
setlocal bufhidden=wipe
exe 'silent keepalt find! '. fnameescape(expand('<afile>'))
" Restore 'path' and 'bufhidden' to their normal values
let &path=path
set bufhidden<
catch /^Vim\%((\a\+)\)\=:E345/
return 0
endtry
endif
endfunction
autocmd BufNewFile * nested call FindInPath(expand('<afile>'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment