From da62217a39cf60f026961135c9c36fd62a4a3cb5 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 23 Aug 2013 23:14:08 -0500 Subject: [PATCH] Started a project-specific settings plugin --- plugin/vimproj.vim | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 plugin/vimproj.vim diff --git a/plugin/vimproj.vim b/plugin/vimproj.vim new file mode 100644 index 0000000..457375a --- /dev/null +++ b/plugin/vimproj.vim @@ -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()