In Vim, you can invoke the terminal by :terminal. Then, you can treat the terminal window as a normal Vim window by doing Ctrl+w Shift+n.

I want to map this sequence to, e.g, Ctrl+t. I checked with :nmap and there is no other mapping of this sequence, i.e. the <C-T> is free.

I put in my vimrc the nnoremap <C-T> <C-W><S-N>, saved and then :so % but nothing. Then I tried the nnoremap <C-T> <C-W>N but again nothing.

Can anyone help me with this?

  • 1
    Welcome to Vi and Vim? Does tnoremap <C-T> <C-W>N do what you want? Let me know if that's what you're looking for and I'll write it as an answer...
    – filbranden
    Commented Jun 3, 2020 at 16:47
  • 1
    @filbranden yes! It worked. Thank you! Please add the answer so I can mark it as accepted.
    – Xxxo
    Commented Jun 3, 2020 at 17:32

1 Answer 1


For mapping keystrokes that would otherwise be sent to the job running in the terminal, you should use :tnoremap instead.

In your case, to use Ctrl+T:

tnoremap <C-t> <C-w>N

See :help terminal-typing for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.