Automatic cancellation of insert mode

This commit is contained in:
Vasili Sviridov committed 2011-10-20 22:06:38 -07:00
1 parent e41418d55c
commit 4ebca22594
1 file changed
+4
+4
View File
@@ -30,6 +30,10 @@ nnoremap k gk
imap jj <Esc>
"Autoexit to normal mode
if has("autocmd")
au CursorHoldI * stopinsert
au InsertEnter * let updaterestore=&updatetime | set updatetime=15000
au InsertLeave * let &updatetime=updaterestore
endif
set autoread "automatically reload files