Home > Blockchain >  Switch multiple panes without repeat keystrokes in VSCodeVim
Switch multiple panes without repeat keystrokes in VSCodeVim

Time:08-11

Say I have three panes arranged like the following.

-------------------
|     |     |     |
|  A  |  B  |  C  |
|     |     |     |
-------------------

If I was in pane A, normally, I would navigate to pane C using CTRLw l, CTRLw l. Is there a built in way to traverse from pane A to pane C without repeating the key strokes? For example, something similar to 2 CTRLw l.

Note: I am using Vim emulation on VSCode where it can be more difficult to add this customizability myself.

CodePudding user response:

As Andy Ray mentioned, 2 CTRLw l does indeed work on native Vim. However, Vim emulation on VSCode does not support this.

According to this link, you can use CTRL1, CTRL2, CTRL3 which does work when using Vim emulation, but is not ideal when you have horizontally split panes and will not work in native Vim.

CodePudding user response:

In Vim, you can simply go from A to C with <C-w>W. In your Vim emulator, well… who knows how well it emulates the original?

  • Related