init: Turn autocmd to au
[vimconf.git] / init.vim
index d9e0373503ec054d11b923c7d72c51a3b66f23b0..2609899e3640fac2ae2043a0007a2a0c6d0b6a5e 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!