tags:

views:

229

answers:

3

I'd like to map Ctrl-TAB to gt in Vim so that I can switch tabs with one keystroke.

I tried...

nmap <C-T> gt
nmap <C-Tab> gt
nmap <C-TAB> gt

That didn't work. How do you say "the tab key" in Vimese?

+2  A: 

You can't. Tab is already a control key, <C-i>.

a paid nerd
+1  A: 

This worked for me in MacVim

:map <C-Tab> gt

It works in command mode. Not in Edit mode.
It does not work in vim in my terminal.

z5h
+5  A: 

It can be mapped in gvim, but terminals don't see a difference between <Tab> and <C-Tab>.

jamessan
+1 This explains what I saw in MacVim vs. vim (in a terminal).
z5h