Skip to main content
added 158 characters in body
Source Link
statox
  • 50.6k
  • 19
  • 153
  • 231

You can use set completeopt=longest which will insert the longest common text of the matches. (:h 'completeopt')

Be sure not to have menu nor menuone in 'completeopt'completeopt' to disable the autocompletion menu.

This way when you'll trigger autocomplete with <C-n> or <C-p> you will not have the menu open but the word will be complete with as many letters as possible.

You can use set completeopt=longest which will insert the longest common text of the matches. (:h 'completeopt')

Be sure not to have menu nor menuone in 'completeopt to disable the autocompletion menu.

You can use set completeopt=longest which will insert the longest common text of the matches. (:h 'completeopt')

Be sure not to have menu nor menuone in 'completeopt' to disable the autocompletion menu.

This way when you'll trigger autocomplete with <C-n> or <C-p> you will not have the menu open but the word will be complete with as many letters as possible.

Source Link
statox
  • 50.6k
  • 19
  • 153
  • 231

You can use set completeopt=longest which will insert the longest common text of the matches. (:h 'completeopt')

Be sure not to have menu nor menuone in 'completeopt to disable the autocompletion menu.