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?
vimrc provides for a very convenient way to move between tabs. When in insert mode, press [Esc] to get to command mode, then use [Ctrl]+T plus a directional arrow to go to the tab you want: up to go to the first tab, down to the last, and left or right to go to the previous or next tab.
Xresources for xterm to send <Esc>[65;5u for Ctrl Shift A . You can then map that in Vim to <C-S-a> . (65 is the decimal Unicode value for shift-a and 5 is the bit for the ctrl modifier. The u in this case stands for "unicode".)
to open a file in a new tab. From the terminal, you can do vim -p filename1 filename2 to open the two files in tabs.
On vim , command-mode keys can be mapped through the ex command :map <key> <macro> and insert-mode keys can be mapped through :map! <key> <macro> . After mapped, the commands to remove the mapping from the command-mode keys and insert-mode keys are unmap <key> and unmap!
It can be mapped in gvim, but terminals don't see a difference between <Tab>
and <C-Tab>
.
You can't. Tab is already a control key, <C-i>
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With