tags:

views:

283

answers:

2

I've been trying to experiment with using :make recently but I don't like that vim has to switch to showing the shell output first and require one enter keypress, then it shows me what I think is a list of the collected errors based on 'errorformat' which I also need to confirm by pressing enter. I would prefer to just have a short "OK" message that does not require confirmation by a keypress, or that vim would open the :cwindow if there were any errors.

A: 

Try:

:silent make

To automatically open the quickfix window after you run make, you can put this into your .vimrc:

autocmd QuickFixCmdPost * :copen
Brian Carper
I already tried :silent make but it just makes the vim window completely black (vim's command line and laststatus is still shown) so I have to call :make to get the buffer to be shown in the window again.
Sam
+1  A: 

Your question is a duplicate of Running :make from gVim in Background.

Luc Hermitte