X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=init.vim;h=bd44c548a27c725ae3d72609cb51868e96fcfc60;hp=05a7966e846bbeb8ac5319cc5b9c8cc323bf8580;hb=d874d9c1be1862c6af8bef5e62e186ba364ef1ef;hpb=2659c7722f80d1954ac1c8c73b223f0cf986c088 diff --git a/init.vim b/init.vim index 05a7966..bd44c54 100644 --- a/init.vim +++ b/init.vim @@ -40,17 +40,17 @@ end syntax on -" Trailing whitespace -highlight default link TrailingWhitespace SpellCap -" Make trailing whitespace be flagged as bad. -au BufRead,BufNewFile * syn match TrailingWhitespace /\s\+$/ containedin=ALL - - """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Some global plugin settings runtime plugsetup.vim +" Attention: Must be run after plugsetup.vim +" Trailing whitespace +highlight default link TrailingWhitespace SpellCap +" Make trailing whitespace be flagged as bad. +au BufRead,BufNewFile * syn match TrailingWhitespace /\s\+$/ containedin=ALL + let g:airline_powerline_fonts=1 let g:airline#extensions#tabline#enabled=1 let g:airline#extensions#branch#enabled=1 @@ -110,7 +110,8 @@ au BufRead,BufNewFile *.cls set filetype=tex au FileType text,markdown,mail,tex,gitcommit,mediawiki,vimwiki setlocal spell au FileType text,markdown,mail,gitcommit,mediawiki,vimwiki set fo+=n -au Filetype tex set shiftwidth=2 +au Filetype go set shiftwidth=8 tabstop=8 noexpandtab +au Filetype tex set shiftwidth=2 tabstop=2 au FileType mediawiki setlocal wrap linebreak tw=0 @@ -118,6 +119,9 @@ au FileType mediawiki setlocal wrap linebreak tw=0 au Filetype mail syn match Statement /^\s*-*\s*>8\s*-*\s*$/ au Filetype mail syn match Statement /^\s*-*\s*8<\s*-*\s*$/ +" Line wrap crippled with numbers shown +au Filetype man set nonumber + """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Some plugin-specific settings