Moving up and down inside an auto-completion box through Vim keys (j and k) instead of arrow keys.
See original GitHub issueFEATURE REQUEST: A feature which will make life inside the editor, of every VSCodeVim user, 100 times easier!
What happens: When we start typing some letters and intellisense opens the auto-completion box, if the choices are more than one and our required option isn’t under selection, we have either to type more letters to filter further and have our required member selected or press arrow keys to choose the required member manually and then press tab to insert it. Sometimes we even lose the choice of typing more characters to further filter. This kind of situation occurs in cases when we have a snippet and we have already completed the prefix for that snippet. For example the following snapshot.
In the example above I have already completed typing the prefix (la
) for an embedded elixir snippet, but as another member (Emmet Abbreviation for label
tag) is above the required member, so I have to press the down arrow key to choose the required member.
(Important) Now if I press Escape key, it will discard the auto-completion options altogether and will take the editor (from the insert mode) to the normal mode.
What do I wish to happen:
I wish that inside the auto-completion box, while being in the above situation (more than one members, and the required member isn’t under selection), if I press Escape
key, the editor don’t go back to the normal mode, but it temporarily map j
and k
keys to to down
and up
arrow keys respectively, until I get out of the auto-completion box by either pressing tab to insert a member, or press Escape
again to get out of the auto-completion box myself.
Thank You so much for this awesome plugin!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:13 (4 by maintainers)
Top GitHub Comments
Ctrl n
andCtrl p
is standard in vim (next prev). This would break that paradigm.I’m a bit confused what the purpose of this would be. Do you not want to use down and up?
If so, you can use Ctrl n and Ctrl p.