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?
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.,