What's the ideaVim action for 'going to mnemoic letter'

已回答

The ideaVim action for jumping to a number mnenomic is ":action GotoBookmark8". What is the ideaVim action for jumping to a mnenomic bookmark letter?

0

Hi Sebastian,

The action is the same, just add a letter corresponding to the mnemonic at the end of it instead of a digit, e.g.:

:action GotoBookmarkE
0

Upon running :action GotoBookmarkA it says VIM - Action not found: GotoBookmarkA.

Here is short gif showing it, I typed the action out manually: https://i.gyazo.com/dc5c21f2953f4028dc1038421c6749de.mp4

It doesn't seem to be listed amongst the idea-actions: https://gist.github.com/zchee/9c78f91cc5ad771c1f5d

0

Sebastian,

Looks like the feature was implemented in the latest IntelliJ IDEA 2021.1.1. You need to update if you are using one of the previous versions.

Alternatively, you can do the following:

  1. Sync IDEA bookmarks and Vim marks using the set ideamarks command. When enabled, creating a global mark will trigger the creation of an IDE bookmark, and vice versa (capital letters only).
  2. After that, you'll be able to use standard Vim commands to jump to bookmark mnemonics, e.g. 'A.

See also: https://github.com/JetBrains/ideavim#ideavim-tips-and-tricks

0

请先登录再写评论。