From: Stefan Huber Date: Wed, 22 Apr 2020 11:33:15 +0000 (+0200) Subject: init: Reorder config lines X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=6a1a346c2364aa99764f7e4ce82533055740da3d;p=vimconf.git init: Reorder config lines --- diff --git a/init.vim b/init.vim index e8dac98..9449342 100644 --- a/init.vim +++ b/init.vim @@ -154,25 +154,15 @@ au Filetype mail syn match Statement /^\s*-*\s*8<\s*-*\s*$/ " Line wrap crippled with numbers shown au Filetype man setlocal nonumber -" Java completion -au FileType java setlocal omnifunc=javacomplete#Complete -au FileType java JCEnable -" See https://github.com/artur-shaik/vim-Javacomplete2 -" ji ji -nmap (JavaComplete-Imports-AddSmart) -imap (JavaComplete-Imports-AddSmart) -" ii jii -nmap (JavaComplete-Imports-Add) -imap (JavaComplete-Imports-Add) -" I jI -nmap (JavaComplete-Imports-AddMissing) -imap (JavaComplete-Imports-AddMissing) -" R jR -nmap (JavaComplete-Imports-RemoveUnused) -imap (JavaComplete-Imports-RemoveUnused) - " Minimum indenting for source code au FileType java,cpp,c,cs let g:detectindent_min_indent = 4 +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' """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Some plugin-specific settings @@ -181,13 +171,6 @@ au FileType markdown call RagtagInit() let g:detectspelllang_langs = {} let g:detectspelllang_langs.aspell =[ 'en_US', 'de_AT'] -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' :let g:org_todo_keywords = [['TODO(t)', 'WAITING(w)', '|', 'DONE(d)'], \ ['|', 'OBSOLETE(o)', 'WONT(n)'], @@ -198,6 +181,23 @@ let g:vimwiki_list = [{'path': '~/.vimwiki/', \ 'template_default': 'default', \ 'template_ext': '.html'}] +" Java completion +au FileType java setlocal omnifunc=javacomplete#Complete +au FileType java JCEnable +" See https://github.com/artur-shaik/vim-Javacomplete2 +" ji ji +au FileType java nmap (JavaComplete-Imports-AddSmart) +au FileType java imap (JavaComplete-Imports-AddSmart) +" ii jii +au FileType java nmap (JavaComplete-Imports-Add) +au FileType java imap (JavaComplete-Imports-Add) +" I jI +au FileType java nmap (JavaComplete-Imports-AddMissing) +au FileType java imap (JavaComplete-Imports-AddMissing) +" R jR +au FileType java nmap (JavaComplete-Imports-RemoveUnused) +au FileType java imap (JavaComplete-Imports-RemoveUnused) + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""