Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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!

share|improve this question

1 Answer 1

up vote 4 down vote accepted

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.

share|improve this answer
    
Worked perfectly! Thanks. I didn't know about this, very useful. –  smessing Oct 31 '12 at 6:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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