I love to use vim as simple IDE when comiling C/C++ programs (let say with gcc on a linux terminal), just inside vim with command:
:w | make | cw
In that way:
- the
:w
vim command save editing - the
:make
INTERNAL vim command invoke the external make program using makefile. - the
:cw
vim command the quickfix window showing list of errors and letting me to go directly to line where errors are.
That's great! but (in case of compiler error) I have to press key ENTER TWICE:
a first time (in the shell):
"press ENTER or type command to continue" ENTER
second time (inside the editor):
"press ENTER or type command to continue" ENTER
BTW, I read about the shortmess setting but didn't help this:
set shortmess=aoOtI
Any idea to avoid to press enter and go directly to the quickfix windows ?