Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using MacVim to develop a C++ program. I usually work with two side-by-side windows (header and implementation files). My problem is that when I run :make, the active window is automatically closed when compiling ends.

More specifically, the make window opens on a bottom window, and when it ends, whatever key I press closes the active window (header or cpp window).

How can I avoid this? Thanks!

share|improve this question

Is it actually closing a window, or just clearing the output of :make, which scrolls the status line area? Have you read through ":help quickfix"?

share|improve this answer
    
It scrolls up the status line area, but when it finishes compiling, and I hit any key, the window becomes an empty file. I will read the quickfix, thanks! – Sara Feb 5 '13 at 7:42
    
What's happening is that after :make runs, Vim is trying to load the file of the first error/warning, and somehow accessing a nonexistent or blank file. See ":help :make" specifically (it's part of quickfix.txt) for what happens when you run the command. – Heptite Feb 6 '13 at 1:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .