5

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)

\mathbb{R}

\ma(Ctrl-n)
  • 2
    Two very related questions: Including dictionary terms with spaces and Ins-completion of WORDs; duplicate probably? – Martin Tournoij Mar 17 '16 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 '16 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 '16 at 12:17
  • There's also ^X^L to complete whole lines. – Antony Dec 22 '16 at 15:54
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, privacy policy and cookie policy

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