by dllthomas · 11y ago · 0 comments
try
source ./.vimlocal
catch /^Vim\%((\a\+)\)\=:E484/
endtry
which lets me tweak my settings (project specific key bindings, &c) by dropping a .vimlocal file in the directory I'm editing from. The try-catch ignores the error raised when the file is absent. if filereadable(expand("~/.vimlocal"))
source ~/.vimlocal
endif