X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=init.vim;h=f4b86e15bd31c35038a1255deb31810f8e3c7745;hp=d9e0373503ec054d11b923c7d72c51a3b66f23b0;hb=24b80095f7be30c28b49af5348755b90f18cbe53;hpb=5911a72d6701e4fedac1474b5bb878cfa7cab54b diff --git a/init.vim b/init.vim index d9e0373..f4b86e1 100644 --- a/init.vim +++ b/init.vim @@ -35,8 +35,11 @@ set wildmode=longest,list:full set tabpagemax=100 +" Some terminals cause weired symbols due to broken cursor-shape termcodes. if has('nvim') - set guicursor= + "set guicursor= + " Workaround some broken plugins which set guicursor indiscriminately. + "au OptionSet guicursor noautocmd set guicursor= end syntax on @@ -109,7 +112,7 @@ let g:python3_host_prog = '/usr/bin/python3' " deoplete requires huge startuptime. Delay loading upon first InsertEnter. let g:deoplete#enable_at_startup = 0 let g:deoplete#enable_smart_case = 1 -autocmd InsertEnter * call deoplete#enable() +au InsertEnter * call deoplete#enable() "augroup pencil "au! @@ -124,16 +127,6 @@ let g:vim_markdown_frontmatter=1 let g:vim_markdown_math=1 -"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Some filetype settings - -" mutt and neomutt -au BufRead,BufNewFile ~/.mutt/tmp/*mutt-* setlocal filetype=mail -au BufRead,BufNewFile *.muttrc setlocal filetype=muttrc - -au BufRead,BufNewFile *.cls setlocal filetype=tex - - """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Some filetype-specific settings