I'd like to use the ins-completion function to suggest not words but WORDS, that is to say, space separated words. Is that possible?

Example: (latex)


  • 2
    Two very related questions: Including dictionary terms with spaces and Ins-completion of WORDs; duplicate probably? Mar 17, 2016 at 11:01
  • 4
    I could also suggest continuing with Ctrl-x Ctrl-n as many times as needed, after the 1st Ctrl-n completion.
    – VanLaser
    Mar 17, 2016 at 11:02
  • Thanks! I think I'll go for abbreviations for commonly inserted text as I do not want to change iskeyword variable, and use c-x c-n for one time completion.
    – nicmus
    Mar 17, 2016 at 12:17
  • There's also ^X^L to complete whole lines.
    – Antony
    Dec 22, 2016 at 15:54

1 Answer 1


in your example, if you want vim treat { and } as words, you can use

set iskeywords+={ set iskeywords+=}

then you press <C-N> the whold WORDS will be completed.

see my pic

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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