1 " My personal vim, nvim, gvim configuration
2 " Author: Stefan Huber <shuber@sthu.org>
12 set listchars=tab:»,trail:·,eol:$
15 filetype plugin indent on
30 set wildmode=longest,list:full
39 let g:airline_powerline_fonts=1
40 let g:airline#extensions#tabline#enabled=1
41 let g:airline#extensions#branch#enabled=1
43 let g:gruvbox_contrast_light='hard'
44 let g:gruvbox_contrast_dark='hard'
45 let g:gruvbox_italic = 1
49 " let NERDTreeWinPos="right"
50 let NERDTreeHijackNetrw=0
51 let NERDTreeWinSize=22
52 let NERDTreeQuitOnOpen=1
53 "au VimEnter * if !argc() | Startify | NERDTree | wincmd w
55 let g:neomake_c_enabled_makers = ['clangtidy', 'clangcheck']
56 let g:neomake_cpp_enabled_makers = ['clangtidy', 'clangcheck']
58 call neomake#configure#automake('w')
59 "let g:neomake_logfile = '/tmp/neomake.log'
61 let g:clang_compilation_database = '.'
63 let g:deoplete#enable_at_startup=1
67 "au FileType markdown,mkd call pencil#init()
68 "au FileType text call pencil#init()
69 "au FileType mail call pencil#init()
70 "au FileType tex call pencil#init()
73 let g:vim_markdown_folding_disabled=1
74 let g:vim_markdown_frontmatter=1
75 let g:vim_markdown_math=1
77 let g:guesslang_langs=[ 'en_US', 'de_AT']
78 au FileType text,markdown,mail,tex,gitcommit setlocal spell
79 au BufReadPost * :DetectIndent
81 au BufEnter *.c* let b:fswitchlocs='reg:/lib/include/,rel:.'
82 au BufEnter *.h* let b:fswitchlocs='reg:/include/lib/,rel:.'
84 au BufEnter *.cpp,*.cc,*.cxx let b:fswitchdst='h,hxx,hpp,hh'
85 au BufEnter *.h,*.hh,*.hxx let b:fswitchdst='cc,c,cxx,cpp'
89 au Filetype mail syn match Statement /^\s*-*\s*>8\s*-*\s*$/
90 au Filetype mail syn match Statement /^\s*-*\s*8<\s*-*\s*$/
93 au BufRead,BufNewFile ~/.mutt/tmp/*mutt-* set filetype=mail
94 au BufRead,BufNewFile *.muttrc set filetype=muttrc
96 " Some settings for tex files
97 au BufRead,BufNewFile *.cls set filetype=tex
98 au Filetype tex set shiftwidth=2
100 au BufRead,BufNewFile *.plt set filetype=gnuplot
102 :let g:org_todo_keywords = [['TODO(t)', 'WAITING(w)', '|', 'DONE(d)'],
103 \ ['|', 'OBSOLETE(o)', 'WONT(n)'],
106 " Trailing whitespace
107 highlight default link TrailingWhitespace SpellCap
108 " Make trailing whitespace be flagged as bad.
109 au BufRead,BufNewFile * syn match TrailingWhitespace /\s\+$/ containedin=ALL
114 if filereadable($HOME . '/.vim/init-local.vim')
115 source ~/.vim/init-local.vim