If you use gnu screen, may be hitting 'c-a h' to save it into a file.
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
read the file back ':read ~/hardcopy.n' assuming that output fitted
into a screen.
Did you use gnu screen?
> > I think he is talking about: when the command returns and he's back inYes. This is what I mean.
> > vim, how to see the command output
> I still don't understand how I can retrieve previous external
> program output.
let's speculate current directory for your session has lots and
lots of files on it and that your OS is some form of *nix -- you
can retrieve a full listing of the directory contents by issuing:
:r!ls -l
and the listing will be inserted into your current buffer below
current line
if all you wanted was to see the listing without adding it to
your buffer, you can undo the command with 'undo'
does this help you at all?
sc
You should say inside your first message that the subject is gvim but
not vim. gvim is gui program that does not run inside a console/terminal.
see h: gui-pty
> I still don't understand how I can retrieve previous external program
> output.
>
> In gvim, if the output of ':!some_command' is too long, I can not
> scroll the bar on the right backward. Is it a bug in gvim?
This is not a bug, but it is a limitation of the terminal emulation
features of gvim. I can't find this in the help files, but I seem
to recall from earlier discussions of this that Bram does not want
vim to become a terminal emulator. If you need the features of a
terminal, run vim (not gvim) in a terminal window. If you execute
":!" commands from within gvim, you will be limited in what you can
do with the output. Various solution have already been
presented in this thread, but they all require planning ahead to
capture the output of a ":!" command.
Regards,
Gary
It is the designed way, in gvim it is impossible to see them. The
official document had described this:
Typeahead while the external command is running is often lost. This happens
both with a pipe and a pseudo-tty. This is a known problem, but it seems it
can't be fixed (or at least, it's very difficult).
If you want terminal features you must use console vim.
screen is used with terminal/console mode programs. You don't need it
for gui programs like gvim.