3

I added and use deoplete to get a list of completion while typing. However, typing in a word shows the completion list with the cursor being nowhere on the list.

On some IDEs like Xcode, when you type in a word, the completion pops up with the cursor already on the first item. So it is possble to just push return to choose the completion, instead of pushing down and return.

This is more convenient yet all the GIFs on the deocomplete Github page don't put the cursor on the first item. Is it possible to archive this behavior?

5

If you use the noinsert flag in completeopt in combination with menu, the first item will be selected (but not inserted into the buffer).

 set completeopt=menu,noinsert

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.