Skip to main content
2 of 2
added 158 characters in body
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.

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.

statox
  • 50.6k
  • 19
  • 153
  • 231