Started a project-specific settings plugin

master
Dustin C. Hatch 2013-08-23 23:14:08 -05:00
parent 601a0c7c8e
commit da62217a39
1 changed files with 16 additions and 0 deletions

16
plugin/vimproj.vim Normal file
View File

@ -0,0 +1,16 @@
" Read project-specific settings from the current working directory when
" loading files.
"
" This plugin is experimental and thus is only enabled if explicitly requested
" by the user
if !exists("g:enable_vimproject")
finish
endif
function! LoadProjectVim()
if filereadable(".project.vim")
source .project.vim
endif
endfunction
autocmd BufReadPre * call LoadProjectVim()