I'm using Dispatch.vim, and often when there's a test error, some lines in the quickfix list are really long. I don't use soft wrapping for my code, so quickfix also isn't wrapped. Is it possible to automatically
setlocal wrap only for the quickfix window?
Autocommands to the rescue!
Put these lines in your
autocmd FileType qf setlocal wrap
There's also this slightly cleaner method:
and put this line in it:
The first method adds yet another autocommand to the possibly large pile of autocommands already in your config.
The second method takes advantage of the fact that Vim already runs its own set of autocommands to determine filetype and source the appropriate ftplugins.