Browse Source

Add autocmd to fix mode when switching from terms

Thomas Dy 7 years ago
parent
commit
08695e59e0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      .vim/init.vim

+ 1 - 0
.vim/init.vim

@@ -222,6 +222,7 @@ if has('nvim')
   tnoremap <C-V> <C-\><C-N>"+pi
 
   autocmd BufWinEnter,WinEnter term://* startinsert
+  autocmd BufLeave term://* stopinsert
 
   nnoremap <Leader>tv :vsp term://zsh<CR>
   nnoremap <Leader>to :term<CR>