14
I use a plugin in vim to compile Tex files. When there are errors on compilation, they are all displayed in a quick fix window at the bottom of the screen.
When I want to leave a file I'm working on (:q, :wq, etc) the quickfix window can be annoying because it stays open after I left the buffer of the file I was working on, forcing me to :q on the quick fix window too.
Is there a way to tell vim to immediately execute :close when I use :q? I've tried several autocmds, but to no avail.