plugins: Change easychair2 url
[vimconf.git] / init.vim
index 414b3ffcfbc5eed4e64de1c329463b86434696c2..9700a32330881a913e40b041892b1ba2d98235f7 100644 (file)
--- a/init.vim
+++ b/init.vim
@@ -16,6 +16,9 @@ set fillchars=vert:│,fold:\
 set listchars=tab:»­,trail:·,eol:$
 set virtualedit=block
 
+" use filetype.lua and do not use filetype.vim for >=neovim-0.7.2
+let g:do_filetype_lua = 1
+let g:did_load_filetypes = 0
 filetype plugin indent on
 
 set tabstop=4
@@ -36,9 +39,14 @@ set colorcolumn=+1
 set mouse=a
 set wildmenu
 set wildmode=longest,list:full
+set showcmd
 
 set tabpagemax=100
 
+if has('nvim-0.7')
+  set laststatus=3
+endif
+
 syntax on
 
 if filereadable($HOME . '/.vim/lowendbox')
@@ -73,16 +81,6 @@ au Filetype mail syn match Statement /^\s*-*\s*8<\s*-*\s*$/
 " Line wrap crippled with numbers shown
 au Filetype man setlocal nonumber
 
-" Minimum indenting for source code
-au FileType java,cpp,c,cs let g:detectindent_min_indent = 4
-" 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 *.cpp,*.cc,*.cxx let b:fswitchdst='h,hxx,hpp,hh'
-au BufEnter *.h,*.hh,*.hxx let b:fswitchdst='cc,c,cxx,cpp'
 au BufNewFile *.{h,hpp,hxx} call AddIncludeGuards()
 
 au FileType cpp,c packadd termdebug
@@ -122,3 +120,7 @@ au BufRead,BufNewFile * call SetBadWhitespaceSyntax()
 let g:termdebug_wide = 1
 let termdebugger = $HOME . '/.vim/gdb.sh'
 
+
+if filereadable($HOME . '/.vim/init-local.vim')
+  source ~/.vim/init-local.vim
+endif