I have found the :cwindow command to be very useful and I was wondering if I could get similar functionality using the output of my compiled code. I’d the output of :!./a.out to appear in a "quickfix" style buffer.
I’ve also noticed that even after taking the standard steps to prevent the "Press Enter to continue" message, it still happens at least once on :make and :!./a.out – using :silent to suppress this causes my tmux to go completely blank. My current workaround involves a mapping with a lot of carriage returns, is there another way?
I found this:
in steve losh’s .vimrc – see which I shamelessly copied.