VsVim key combination for switching between files / tabs?

I recently installed VsVim.

This is great, but I constantly click on the mouse to switch between files.

Is there a built-in solution? I cannot find the list of VsVim shortcuts anywhere.

+8
source share
4 answers

Found the answer here: Tab / Window group movement: (Ctrl-W) (Ctrl-L), etc.

Use gt or gT to switch between tabs.

+9
source

Also note that Ctrl + Tab works to cycle through tabs.

It seems to be implemented as a stack of MRU-LRU tabs, which means that pressing Ctrl + Tab once will bring you to the last previous tab used, and pressing Ctrl + Tab will return you back to where you were.

A pop-up window will appear in which the available tabs are displayed while holding Ctrl, which allows you to select a tab from the list.

It basically looks like a classic MDI window tab.

I do not think this is part of VsVim, but rather a transition to Visual Studio.

+4
source

Also in addition to these methods of replacing Windows I also use

ALT W , then you can use the number keys to select a tab. this is kept in the very last order, so selection 2 will always go to the previous tab you were in.

Another thing you can use is labels. m<capital letter> sets a mark that jumps over files (lowercase labels work inside the file). To go to the value, use ` <mark the letter>

+1
source

First, if you are talking about the gt and gT , choose the transition to the next / previous tab.

This question is pretty old, so the <Cw> shortcuts haven't been implemented yet, but even in Vim I never liked these shortcuts. As a replacement, I added a few leader bindings using the standard hjkl navigation hjkl . My leader is matched with a space, so they are really easy to use. I also re-bind tab navigation to [b and ]b , which are buffer navigation bindings in one of the Tim Pope Vim add-ons :

 let mapleader="\<Space>" " Window control/navigation leader mappings nmap <leader>h <Cw>h nmap <leader>j <Cw>j nmap <leader>k <Cw>k nmap <leader>l <Cw>l nmap <leader>c <Cw>c " Tab cycling nmap [b gT nmap ]b gt 
0
source

Source: https://habr.com/ru/post/975082/


All Articles