Reputation: 369
Whenever I try to do an auto complete in vim with control-n, after i choose a word it automatically goes to a new line and indents a bunch of spaces. Is there any way to change it so it will just go to the end of the word im typing as opposed to a new line?
Upvotes: 1
Views: 140
Reputation: 172520
Contrary to the behavior in most IDEs, you don't select a completion candidate from the popup menu with Enter; you use <C-Y>
, or just continue typing. See :help popupmenu-keys
.
You can change the default behaviour, though. Have a look at Make Vim completion popup menu work just like in an IDE for instructions.
Upvotes: 3