Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scrolling in vim autocomplete box with jk movement keys

In vim you can start typing a word, hit ctrl-n, and a box will popup with suggested completions. I don't like having to move my hands away to the arrow keys to scroll through this list. Is there some way I can use the jk keys to scroll down/up instead?

like image 773
krashalot Avatar asked Sep 06 '25 11:09

krashalot


1 Answers

I know the question is asking to use the J and K keys but you can also avoid using the arrow keys another way.

After hitting ctrl+n to get the autocomplete popup, you can navigate the list with ctrl+n and ctrl+p.

like image 146
Tim Fletcher Avatar answered Sep 08 '25 10:09

Tim Fletcher