From: Stefan Huber Date: Wed, 22 Apr 2020 13:58:39 +0000 (+0200) Subject: Add localvimrc plugin X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=commitdiff_plain;h=225ae47ee0ac495e9575ad6401fa74e0325ee4b9;hp=6a1a346c2364aa99764f7e4ce82533055740da3d Add localvimrc plugin --- 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'