]> git.sthu.org Git - shutils.git/commitdiff
vim: check for .*vimrc-local files before loading
authorStefan Huber <shuber@sthu.org>
Thu, 6 Dec 2012 08:26:20 +0000 (09:26 +0100)
committerStefan Huber <shuber@sthu.org>
Thu, 6 Dec 2012 08:26:20 +0000 (09:26 +0100)
dotfiles/vim/.gvimrc
dotfiles/vim/.vimrc

index 1b2d6e690ed361c99ce97428dcc18c6ebc3d4ac4..1e5b38e712a48ae5d736fab73ee8ae3c2990d101 100644 (file)
@@ -26,3 +26,13 @@ endfunction
 :menu Presentation.On  :call SetPresentationFont(1)<CR>
 :menu Presentation.Off :call SetPresentationFont(0)<CR>
 
+
+
+"" {{{ vimrc.local
+if filereadable($HOME . "/.gvimrc-local")
+  source ~/.gvimrc-local
+endif
+" }}}
+
+
+
index 739ae07cf327d4bcfbd6b53d23d2e39b0059a296..e65aba1f042acc8514c0aab09929fd5319d5fb77 100644 (file)
@@ -319,6 +319,9 @@ let g:SuperTabDefaultCompletionType = 'context'
 "let g:SuperTabDefaultCompletionType = '<c-x><c-u>'
 
 
-source ~/.vimrc-local
+
+if filereadable($HOME . "/.vimrc-local")
+       source ~/.vimrc-local
+endif