X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=init.vim;h=e058adf0ecb44b850c26a142749ce01e16183fb7;hp=f840aca45f21043b0d2eb2815d1035999a9c7e87;hb=8f6691d6aaeaab042895732fbfd77d2d2ba9e89a;hpb=0b8d10cf3795f7ce103de2165e3aae15c0f52ec7 diff --git a/init.vim b/init.vim index f840aca..e058adf 100644 --- a/init.vim +++ b/init.vim @@ -7,17 +7,21 @@ set number set cursorline set scrolloff=5 - set encoding=utf-8 set listchars=tab:»­,trail:·,eol:$ set virtualedit=block +filetype plugin indent on + set tabstop=4 set shiftwidth=4 set expandtab set smarttab +set autoindent +set smartindent + set incsearch set hlsearch @@ -30,7 +34,6 @@ if has('nvim') end syntax on -filetype plugin indent on runtime plugsetup.vim let g:airline_powerline_fonts=1 @@ -57,7 +60,11 @@ call neomake#configure#automake('w') let g:clang_compilation_database = '.' -let g:deoplete#enable_at_startup=1 +" Speedup deoplete startup time, see deoplete FAQ +let g:python3_host_prog = '/usr/bin/python3' +" deoplete requires huge startuptime. Delay loading upon first InsertEnter. +let g:deoplete#enable_at_startup = 0 +autocmd InsertEnter * call deoplete#enable() "augroup pencil "au! @@ -71,10 +78,16 @@ let g:vim_markdown_folding_disabled=1 let g:vim_markdown_frontmatter=1 let g:vim_markdown_math=1 +au FileType markdown call RagtagInit() + let g:guesslang_langs=[ 'en_US', 'de_AT'] -au FileType text,markdown,mail,tex setlocal spell +au FileType text,markdown,mail,tex,gitcommit,mediawiki setlocal spell au BufReadPost * :DetectIndent +au FileType text,markdown,mail,gitcommit,mediawiki set fo+=n + +au FileType mediawiki setlocal wrap linebreak tw=0 + au BufEnter *.c* let b:fswitchlocs='reg:/lib/include/,rel:.' au BufEnter *.h* let b:fswitchlocs='reg:/include/lib/,rel:.' @@ -97,7 +110,7 @@ au Filetype tex set shiftwidth=2 au BufRead,BufNewFile *.plt set filetype=gnuplot :let g:org_todo_keywords = [['TODO(t)', 'WAITING(w)', '|', 'DONE(d)'], - \ ['|', 'OBSOLETE(o)'], + \ ['|', 'OBSOLETE(o)', 'WONT(n)'], \ ['CANCELED(c)']] " Trailing whitespace