0

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.

romainl
  • 186,200
  • 21
  • 280
  • 313
Jaan
  • 330
  • 2
  • 9
  • 1
    Yes, `2 ctrl-w l` works. Vim's help is very bad, to read about this, use `:h CTRL-W_` – Andy Ray Aug 10 '22 at 23:07
  • I guess I should've tried in native Vim. It doesn't seem to be supported using Vim emulation on VS. I'll edit the question to be more specific to my environment. – Jaan Aug 10 '22 at 23:09
  • 1
    If you you've learned enough Vim to be an efficient Vim user, meaning if you've learned all the nasty bells and whistles you need to glue together in Vim to try to be productive, then you'll find there's no such thing as a good "vim mode" in other editors, because they only implement the basics of Vim, not the things you actually need. – Andy Ray Aug 10 '22 at 23:10

2 Answers2

0

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.

Jaan
  • 330
  • 2
  • 9
0

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?

romainl
  • 186,200
  • 21
  • 280
  • 313