Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IdeaVim: How to cycle through list items without using arrow keys?

Is there a way to move through list of suggestions without leaving keyboard home row? I am looking for some kind of vim-style analog to up/down arrow actions.list of suggestions in IntelliJ IDEA

like image 207
Pavel Avatar asked Jul 10 '16 08:07

Pavel


People also ask

How do I select similar words in IntelliJ?

Press Ctrl+Alt+Shift+J to select all case-sensitively matching words or text ranges in the document.

How do I reload my IdeaVim?

Editing and Reloading the Config ideavimrc file. Once saved, it needs to be reloaded to apply the changes. The following defines two remaps: \e to open the file and \r to reload it. Moreover, the set clipboard command enables using the system clipboard from IdeaVim and vice-versa.

What is IdeaVim plugin?

The IdeaVim plugin emulates Vim in the IntelliJ IDEA editor, including normal, insert, and visual modes, Command-line and Ex modes, Vim regexp and configuration, and other features.


3 Answers

For people reading this on 2019

you can use Ctrl + n and Ctrl+ p to cycle the autocomplete options

Reference: https://youtrack.jetbrains.com/issue/VIM-438#comment=27-520874

like image 56
David Sttivend Angel Avatar answered Oct 31 '22 21:10

David Sttivend Angel


You can bind Fn + hjkl to arrow keys globally in your OS. No more leaving the home row, ever! Fn is often located in the bottom left corner of the keyboard where you can easily reach it with your left palm.

On OS X you can remap the keys using excellent Karabiner software (formerly known as KeyRemap4MacBook) which has a "Vi mode" preset.

On Linux there are several solutions using xmodmap or XKB, see https://superuser.com/questions/96299/mapping-superhjkl-to-arrow-keys-under-x. You might need to substitute Fn for LCtrl: I'm not sure if Fn is visible to key remapping code at all.

Not sure if there are any options on Windows.

Also, certain high-end keyboards can remap keys in hardware as well.

like image 44
Alex Grigorovitch Avatar answered Oct 31 '22 21:10

Alex Grigorovitch


On Windows, you can use AutoHotkey to remap Win+jk to DownUp

#j::Send {Down}
#k::Send {Up}
like image 26
Jorjon Avatar answered Oct 31 '22 20:10

Jorjon