0

I have set nowrap in my vim config file but there's one place where I need line wrapping: the scratch buffer (because the text that shows up there usually doesn't stick to 80 columns). Is there a way to enable line wrapping for the scratch buffer but not other buffers?

  • 1
    What do you call "the scratch buffer"? – romainl Dec 31 '15 at 17:31
  • aka 'preview window' maybe. the thing docstrings show up in during autocomplete – Andrew MacFie Dec 31 '15 at 21:06
0

The question is about vim's command-line (also known as the colon line). That does not wrap.

However, vim documents a special command-line window, for entering complex commands, which helps a little.

If you edit the command-line window, you can set its wrap mode separately from the other windows, using the local setl option e.g.,

:setl wrap

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.