I can't seem to find a predefined keyboard shortcut for switching between open tabs in Gvim. What is it, and if there is none, how can I define one?
Here's how: Menu-bar -> Settings -> Configure Keyboard Shortcuts. Delete the existing keybinds for Ctrl+Shift+Tab and Ctrl+Tab by binding them to "None"
CTRL+w CTRL+w - switch between windows CTRL+w UP - Move to the top window from current window CTRL+w DOWN - Move to the bottom window from current window CTRL+w LEFT - Move to the left window from current window CTRL+w RIGHT - Move to the right window from current window.
Under the menu on the right, click on the plus (+) to add a new command. Choose MacVim for the application, and for the menu title, type "Select Next Tab", and choose a shortcut (I chose Cmd+right arrow). Then do the same thing for the command "Select Previous Tab".
Use gt
and gT
commands.
:tabn
and :tabp
also work.
Read :help gt
and read that section completely. There are many useful commands explained there.
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