console vim solution
From :help os_win32.txt
.
Q. How do I get to see the output of ":make" while it's running?
A. Basically what you need is to put a tee program that will copy its input (the output from make) to both stdout and to the errorfile. You can find a copy of tee (and a number of other GNU tools) at
http://gnuwin32.sourceforge.net or http://unxutils.sourceforge.net
Alternatively, try the more recent Cygnus version of the GNU tools at http://www.cygwin.com Other Unix-style tools for Win32 are listed at http://directory.google.com/Top/Computers/Software/Operating_Systems/Unix/Win32/ When you do get a copy of tee, you'll need to add:set shellpipe=\|\ tee
to your _vimrc.
gvim solution
Under gvim, a separate console window is started minimized. If you restore the minimized window, you can observe the output.
If you want the window to start restored (not minimized), then you'll have to make the following source change to src/os_win32.c and compile gvim yourself.
si.lpDesktop = NULL;
si.lpTitle = NULL;
si.dwFlags = STARTF_USESHOWWINDOW;
- /*
- * It's nicer to run a filter command in a minimized window.
- * Don't activate the window to keep focus on Vim.
- */
- if (options & SHELL_DOOUT)
- si.wShowWindow = SW_SHOWMINNOACTIVE;
- else
- si.wShowWindow = SW_SHOWNORMAL;
+ si.wShowWindow = SW_SHOWNORMAL;
si.cbReserved2 = 0;
si.lpReserved2 = NULL;