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

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -