terminal - back to terminal from normal ?

20 views
Skip to first unread message

M Kelly

unread,
May 14, 2018, 3:12:59 PM5/14/18
to vim_use
Hi,

When in a terminal I can do <C-\><C-n> or <C-w><C-N> to get into normal mode.
But is there a way to get back to terminal mode ? No matter what I try and search for I cannot seem to find it.

thx,
mark

Bram Moolenaar

unread,
May 14, 2018, 4:00:17 PM5/14/18
to vim...@googlegroups.com, M Kelly
Any command that would start Insert mode, e.g. 'a' or 'i'.

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

M Kelly

unread,
May 14, 2018, 4:12:44 PM5/14/18
to vim_use
> Any command that would start Insert mode, e.g. 'a' or 'i'.

Well ok, thats just too darn obvious!

thx as always,
mark

M Kelly

unread,
May 14, 2018, 4:40:40 PM5/14/18
to vim_use
Would something like this work as a toggle ?

nnoremap <expr> <silent> <C-\><C-n> (&buftype == 'terminal') ? 'i' : '\<Nop>'

-mark

Reply all
Reply to author
Forward
0 new messages