Move filetype detection to files in ftdetect
[vimconf.git] / init.vim
index d9e0373503ec054d11b923c7d72c51a3b66f23b0..f4b86e15bd31c35038a1255deb31810f8e3c7745 100644 (file)
--- 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