Vim: remove line numbers and colorcolumn from quickfix window

vimvimrc

In my vimrc I have both set number and set colorcolumn=80, so now when I open a quickfix window, I see both line numbers and the color column. Is there some way to disable these settings for quickfix windows only? (If it matters, I'm on OSX using vim 7.3).

Thanks!

Best Answer

Put the following into ~/.vim/ftplugin/qf.vim:

setlocal nonumber
setlocal colorcolumn=

As long as you have filetype plugin support enabled, that should handle it.

Related Question