Currently, I'm using C-wC-h-type of shortcuts to navigate through open editors. However, in VS Code, I'm also used to using shortcuts like C-1 to go to the first editor group, instead of hopping through them all until I reach the first one.

Is there a way of doing it in Vim? How does it work in defining the editor group index when we split both horizontally and vertically?

  • can you clarify what you mean by editor group and editor group index?
    – Mass
    May 12, 2023 at 15:26

3 Answers 3


Vim doesn't have an equivalent of Visual Studio Code's "editor groups" or "editors" because what it has—buffers, windows, and tab pages—doesn't map 1-to-1 with what Visual Studio Code has. Therefore, it can't be expected to provide any command for interacting with "editor groups".

When you split windows, all you get is just… more windows, without any notion of window grouping like "columns" or "rows", so all you can do is move your cursor to the desired window.

You have quite a bunch of <C-w> commands for that under :help window-move-cursor.

n<C-w>w, where n is the number of a window, might help in some cases, but there is really no more columns or rows than there are editors or editor groups so you should forget those notions entirely.


You can go to the upper left window using: Ctrl wt

You can also go to the lower right window using: Ctrl wb


Since, personally, I don't use a crazy amount of windows, I think that manually mapping a combination of what the other answers mentioned is probably best: something like C-wt2C-ww for C-3 for example.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.