mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 21:00:03 +08:00
Improve close term buffer function
This commit is contained in:
parent
9221a22121
commit
72b379010a
@ -55,7 +55,11 @@ augroup Terminal
|
||||
au!
|
||||
au TermOpen * let g:last_terminal_job_id = b:terminal_job_id | IndentLinesDisable
|
||||
au BufWinEnter term://* startinsert | IndentLinesDisable
|
||||
au TermClose * let g:_spacevim_termclose_abuf = expand('<abuf>') | call SpaceVim#mapping#close_term_buffer()
|
||||
if has('timers')
|
||||
au TermClose * let g:_spacevim_termclose_abuf = expand('<abuf>') | call timer_start(5, 'SpaceVim#mapping#close_term_buffer')
|
||||
else
|
||||
au TermClose * let g:_spacevim_termclose_abuf = expand('<abuf>') | call SpaceVim#mapping#close_term_buffer()
|
||||
endif
|
||||
augroup END
|
||||
augroup nvimrc_aucmd
|
||||
autocmd!
|
||||
|
Loading…
Reference in New Issue
Block a user