Hi,
I have a mapping to open a terminal split e.g
nnoremap <silent> <KEY1> :10split term://zsh<CR>
and then close it with
tnoremap <silent> <KEY1> <C-\><C-n> :q<CR>
this works pretty well if the output in the terminal split is small. As soon as the output in the terminal split exceeds the terminal window size. e.g
open the terminal split with KEY1
cat long_text_file.txt
close terminal split with KEY2
the mapping to close the terminal split fails.
The key supposing to close the terminal only switches to normal mode. I can than :q to close the split but the key mapping fails. Anybody has a solution to this?