--- os_win32.c.orig Tue Nov 27 09:47:53 2007 +++ os_win32.c Tue Nov 27 11:04:36 2007 @@ -3125,7 +3125,15 @@ * Win32s either as it stops the synchronous spawn workaround working. */ if ((options & SHELL_DOOUT) && !mch_windows95() && !gui_is_win32s()) - si.wShowWindow = SW_SHOWMINIMIZED; + { + char *vim_system_hideconsole; + vim_system_hideconsole = getenv("VIM_SYSTEM_HIDECONSOLE"); + if (vim_system_hideconsole != NULL + && strcmp(vim_system_hideconsole, "0") != 0) + si.wShowWindow = SW_HIDE; + else + si.wShowWindow = SW_SHOWMINIMIZED; + } else si.wShowWindow = SW_SHOWNORMAL; si.cbReserved2 = 0;