5

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

Pavel
  • 318
  • 3
  • 13
  • Its a feature request not question ) go to youtrack https://youtrack.jetbrains.com/issues/VIM – Bimawa Jul 11 '16 at 06:56
  • 4
    I would disagree, because I don't know, whether IdeaVIM has such functionality at all. The answer I expect is one of: a) "No, there's no such feature" + optional workaround; b) "Yes, there is such feature, and here is how to do it". – Pavel Jul 11 '16 at 08:09

4 Answers4

5

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

4

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.

Community
  • 1
  • 1
  • These are some very interesting ideas and resources, thank you for sharing! Inspired by these, I will consider the idea of remapping LCtrl to CapsLock, and make LCtrl that magic key that would turn h,j,k,l to arrow keys. – Pavel Sep 29 '16 at 12:44
2

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

#j::Send {Down}
#k::Send {Up}
Jorjon
  • 5,316
  • 1
  • 41
  • 58
1

On OS X one can use +N and +P. No external tools required!

Pavel
  • 318
  • 3
  • 13