开发者

How do I type CTRL + ] on a QWERTZ keyboard (in order to jump to a tag with Vim)?

开发者 https://www.devze.com 2023-03-25 21:14 出处:网络
In Vim, the usual way to jump to the definition of the keyword under the cursor is to type CTRL-] (as claimed by :he CTRL-\\]).

In Vim, the usual way to jump to the definition of the keyword under the cursor is to type CTRL-] (as claimed by :he CTRL-\]).

But when you have a QWERTZ keyboard (see below, Strg is Ctrl), you're in some trouble: there is no separate ] key on the keyboard; you'll have to press ALT GR-9 to type the ]. So, to jump to a tag, it`s neccessary to hit CTRL-ALT GR-9 whi开发者_如何学运维ch doesn't work (and is also not feasible because you'll break your fingers if you happen to use that often).

How do I type CTRL + ] on a QWERTZ keyboard (in order to jump to a tag with Vim)?

So, how could I jump to a tag using my QWERTZ keyboard?

In addition, I'd also be glad if someone could explain why pressing CTRL-ALT GR-9 does not work.


Edit:

I'm not interested in the obvious answers "remap to something else" or "press the mouse button".


Duplicate on Vi/Vim: https://vi.stackexchange.com/questions/5732/tag-navigation-using-ctrl-does-not-work-with-non-english-keyboard-on-windows


As weird as it reads, on AZERTY keyboards (french layout specifically) $ is at the same spot as ] on QWERTY keyboards so I must hit <C-$> to jump to definition.

See if <C-+> does the trick.


On an AZERTY keyboard press:

  • ctrl shift 8 to go to List item
  • ctrl shift 7 to go from

The same in excel as

ctrl [ ctrl ]


On a QWERTZ mac keyboard Ctrl+option+6 worked for me. And jumping back worked as expected with Ctrl+T or Ctrl+O.

0

精彩评论

暂无评论...
验证码 换一张
取 消