vim - is there a way to see output of previous ":! g++ %" without rerunning? -
when coding, check code running :! g++ %
. map command <f5>
. takes while compile , want see errors without spending time recompiling. also, want compare new output previous one.
is there way see previous output of :! ...
?
provided have g++
configured makeprg
, can use :copen
reopen last list of errors :make
command.
set makeprg=g++\ %
then, compile, use
:make
when compile completes, errors listed in quickfix window, can (assuming errorformat
correctly configured) used jump lines on errors occur. works out of box c/c++.
if dismiss quickfix window, retrieve last error list
:copen
review :help quickfix
, :help makeprg
full gory details on how works.
Comments
Post a Comment