From 83afb60bc218c2f59edc369aa0b46ad3b2b88fd5 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Sat, 16 Jun 2012 18:55:50 -0500 Subject: [PATCH] Add ability for a per project .vimrc.local file I was just thinking about this earlier today and then noticed on Twitter that @garybernhardt was thinking the same thing. From some of the replies to his tweet, I came up wtih this. Adding a .vimrc.local file to the CWD where vim is opened will cause it to be source, meaning custom key bindings can be applied on a per project basis. --- vim/vimrc.symlink | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vim/vimrc.symlink b/vim/vimrc.symlink index 853cf9d..5c229f5 100644 --- a/vim/vimrc.symlink +++ b/vim/vimrc.symlink @@ -331,3 +331,11 @@ let g:ctrlp_custom_ignore = '\.git$|\.hg$|\.svn$' if filereadable(glob("~/.vimrc.local")) source ~/.vimrc.local endif + +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" +" => Local, Per Project vimrc +""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" + +if filereadable(".vimrc.local") + source ./.vimrc.local +endif