projects
/
vimconf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6a1a346
)
Add localvimrc plugin
author
Stefan Huber <shuber@sthu.org>
Wed, 22 Apr 2020 13:58:39 +0000
(15:58 +0200)
committer
Stefan Huber <shuber@sthu.org>
Wed, 22 Apr 2020 13:58:39 +0000
(15:58 +0200)
init.vim
patch
|
blob
|
history
plugins.vim
patch
|
blob
|
history
diff --git
a/init.vim
b/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
" 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:.'
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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Some plugin-specific settings
+let g:localvimrc_persistent = 1
+
au FileType markdown call RagtagInit()
let g:detectspelllang_langs = {}
au FileType markdown call RagtagInit()
let g:detectspelllang_langs = {}
diff --git
a/plugins.vim
b/plugins.vim
index 06f5a9d7745d14cb6d340b4abd0a7c78911901d6..c809770c242a1bc7c7f14fcf9098f652a42b55ea 100644
(file)
--- a/
plugins.vim
+++ b/
plugins.vim
@@
-6,6
+6,7
@@
endfunction
Plug 'mhinz/vim-startify'
Plug 'editorconfig/editorconfig-vim'
Plug 'mhinz/vim-startify'
Plug 'editorconfig/editorconfig-vim'
+Plug 'embear/vim-localvimrc'
Plug 'vim-airline/vim-airline'
Plug 'morhetz/gruvbox'
Plug 'vim-airline/vim-airline'
Plug 'morhetz/gruvbox'