VIM: turn off autocomplete but keep prompting

I am new to VIM and I am from the world of Eclipse / VS.

It seems that when I use Ctrl + N , it automatically terminates this function, and when I enter sys (I intend to get syslog), it automatically completes the name sysSync (the first item in the list of prompts is sysSync).

The problem is that sys automatically exits before sysSync. When I keep typing l, it becomes sysSyncl, not sysl. I found this to be too annoying.

My question is how to turn off auto-completion, but open a help window, for example, when I type sys, it leaves sys intact, but gives me a list of hints to choose from?

What should I add to my .vimrc file?

Thanks so much for your time.

+6
source share
2 answers

Take a look at http://vim.wikia.com/wiki/Make_Vim_completion_popup_menu_work_just_like_in_an_IDE . It describes a setting in which only the first pop-up menu entry is selected only, so you can quickly accept it via CTRL-Y) but not yet inserted into the text (so you can continue to enter text).

+4
source

I don’t know how to do exactly what you want, but keep in mind that you can hold CTRL pressed and scroll through sentences with N.

0
source

Source: https://habr.com/ru/post/915803/


All Articles