Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gvim: switching tabs with keyboard

Tags:

vim

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?

like image 982
BenGC Avatar asked Jul 26 '11 15:07

BenGC


People also ask

How do I map Ctrl tab in vim?

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"

What is Ctrl W in vim?

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.

How do I switch between tabs in vim Mac?

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".


1 Answers

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.

like image 122
Susam Pal Avatar answered Sep 26 '22 06:09

Susam Pal