Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suppress command window when running console application on Windows

Is there a way to suppress showing the command window when running a console application on Windows XP?

Details: I am calling a (console-based) program from Vim. I would like to avoid the command window being shown every time I do this.

like image 229
Szabolcs Avatar asked Jun 27 '11 13:06

Szabolcs


3 Answers

Try start /B <program name> to start the program without a new window.

like image 186
Kerrek SB Avatar answered Nov 20 '22 13:11

Kerrek SB


Did you try shell.vim?

The xolox#shell#execute() function

This function enables other Vim plug-ins to execute external commands in the background (i.e. asynchronously) without opening a command prompt window on Windows.

like image 27
GmonC Avatar answered Nov 20 '22 13:11

GmonC


i can't believe no one has suggested simply using :silent

for example, I have the following in my .vimrc (gvim on Win7)

"open windows explorer to the directory of the current file
:map <leader>ex :silent !Explorer %:p:h<CR> 
like image 3
ash Avatar answered Nov 20 '22 15:11

ash