Last Updated: February 25, 2016
·
455
· copenhas

Custom VIM settings for a project

Ever wanted to tweak a few settings but only for the project at hand?

Well here's some basic vimscript to get you going:

" Search up path for proj.vim file so we can wire in
" extra settings on a per project basis.
let proj_settings=findfile('proj.vim', '.;/')
if filereadable(proj_settings)
    source `=proj_settings`
endif

Allows you to optionally include a 'proj.vim' file at the top of your project and have VIM automatically pick it up.