I've just started using the NERDTree vim plugin for my project.
I can't find the documentation for switching between opened tabs. Can anyone tell me the shortcut key[s] ?
Thanks...
I've just started using the NERDTree vim plugin for my project.
I can't find the documentation for switching between opened tabs. Can anyone tell me the shortcut key[s] ?
Thanks...
I use iTerm on the mac, and I like being able to switch to the next/previous tabs using Shift-[left arrow key] and Shift-[right arrow key]
From my .vimrc, here's how to do the same thing in MacVim;
FYI, by default, the key combos Cmd-Shift-[ and Cmd-Shift-] will switch between tabs in MacVim (and in Google Chrome, Safari and probably a bunch of other stuff)
To enable Tab navigation like firefox add this to your vimrc:
Also this come in handy Use
<A-Fn>
to go to the nth tabpageWhere,
NOTE: Alt + f4 is usually used for closing of the windows. So check for that. If problem persists you can always map Ctrl or Shift key instead of Alt key, or use some combination of these.
I like to bind my vim navigation keys to switching between tabs. Here are the lines from my
.vimrc
file:That way, I can switch between tabs using the left and right buttons just like I normally would move the cursor, except I just hold the Control key as well.
my settings
An additional option (and my personal choice)beyond the ones listed by Michael Madsen:
gt
= next tabgT
= previous tab'{TabNumber} + gt'
will allow you toggle to tab{TabNumber}
.For example, going to tab 1 will be keying '1' followed by 'g' and 't'.
The tab number is incremental from 1 left to right.