Add localvimrc plugin
[vimconf.git] / init.vim
index 94493423c801caa9e5945d9a4b5e6f5ef013bc9f..3c81e4edc15d6bda1cd41f069e83a1e1f8de1521 100644 (file)
--- a/init.vim
+++ b/init.vim
@@ -156,7 +156,8 @@ au Filetype man setlocal nonumber
 
 " Minimum indenting for source code
 au FileType java,cpp,c,cs let g:detectindent_min_indent = 4
-au BufReadPost *.java :DetectIndent
+" Consider using localvimrc config file or editorconfig instead
+"au BufReadPost *.java :DetectIndent
 
 au BufEnter *.c* let b:fswitchlocs='reg:/lib/include/,rel:.'
 au BufEnter *.h* let b:fswitchlocs='reg:/include/lib/,rel:.'
@@ -167,6 +168,8 @@ au BufEnter *.h,*.hh,*.hxx let b:fswitchdst='cc,c,cxx,cpp'
 """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 " Some plugin-specific settings
 
+let g:localvimrc_persistent = 1
+
 au FileType markdown call RagtagInit()
 
 let g:detectspelllang_langs = {}