~gpanders/dotfiles

69586d5df795f2e2aec3fad9db228df31475f23b — Greg Anders a month ago 61d0de6
Automatically start insert mode when entering a terminal in Vim
1 files changed, 2 insertions(+), 1 deletions(-)

M .vim/vimrc
M .vim/vimrc => .vim/vimrc +2 -1
@@ 352,9 352,10 @@ autocmd BufLeave *.h mark H
autocmd BufLeave *.{c,cc,cpp} mark C
autocmd BufLeave *.py mark P

" Start insert immediately when terminal opens
" Start insert mode when entering terminal
if exists('##TermOpen')
  autocmd TermOpen * startinsert
  autocmd BufEnter term://* startinsert
endif

" Enable omnicompletion from syntax if no other option available