From 225ae47ee0ac495e9575ad6401fa74e0325ee4b9 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Wed, 22 Apr 2020 15:58:39 +0200 Subject: [PATCH] Add localvimrc plugin --- init.vim | 5 ++++- plugins.vim | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/init.vim b/init.vim index 9449342..3c81e4e 100644 --- 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 = {} diff --git a/plugins.vim b/plugins.vim index 06f5a9d..c809770 100644 --- a/plugins.vim +++ b/plugins.vim @@ -6,6 +6,7 @@ endfunction Plug 'mhinz/vim-startify' Plug 'editorconfig/editorconfig-vim' +Plug 'embear/vim-localvimrc' Plug 'vim-airline/vim-airline' Plug 'morhetz/gruvbox' -- 2.39.5