Trying to get :term to work like :sh
This commit is contained in:
parent
16f863fe36
commit
b51e75495c
1 changed files with 9 additions and 0 deletions
9
init.vim
9
init.vim
|
@ -3,3 +3,12 @@ let &packpath = &runtimepath
|
|||
source ~/.vimrc
|
||||
|
||||
autocmd TermOpen * startinsert
|
||||
|
||||
" augroup terminal
|
||||
" autocmd!
|
||||
" autocmd TermClose * if getline('$') == 'Exit 0' | close | endif
|
||||
" augroup end
|
||||
|
||||
" autocmd TermClose * if getline('$') == 'Exit 0' | close | endif
|
||||
|
||||
autocmd TermClose * :echo getline('$')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue