vim quit except when terminal(s) active

28 views
Skip to first unread message

M Kelly

unread,
May 10, 2018, 9:44:31 PM5/10/18
to vim_use
Hi,

Any help with an autocmd so that when I quit vim it does not really quit if at least one terminal is still active ?
Otherwise the current window goes hidden and then when I exit the terminal the previous window/buffer suddenly reappears.

thx always for vim and all your support,
mark

M Kelly

unread,
May 11, 2018, 5:18:31 PM5/11/18
to vim_use
Hi,

I think I solved it with this -

function! s:TermQuit()
quit!
endfunction
tnoremap <silent> <C-d> <C-w>:call <SID>TermQuit()<CR>

take care,
-mark

Reply all
Reply to author
Forward
0 new messages