Search code examples
vim

How to show the output from the last shell command run in vim? (e.g., from ":!echo foo")


When I run a shell command it asks to type ENTER at the end and once you do the output is hidden. Is there a way to see it again w/o running the command again?

Also some internal commands like make also run external commands, and those do not even stop for ENTER so if I have an error in my 'compiler' settings the command flashes on the screen too fast to see it. How do I see the command and its output? (quickfix is empty)

UPDATE

The output is DEFINITELY still there. at least on the terminal vim. if I type

:!cat

the output of the previous command is still there. the problem is a) it seems too much like a hack, I'm looking for a proper vim way b) it doesn't work in gui vim


Solution

  • just type :! or you could try SingleCompile