94
16
If I've piped the results of a command to less
and then decided that I want to save the contents to a file, is this possible?
I've tried setting a mark a
at the end of the buffer, and then returning to the top and using |avi
to send the whole contents to vi
, but that doesn't work.
1Your original technique would work if you instructed vi to load from stdin, by doing
|avi -
. – Joe Shaw – 2014-04-18T17:07:06.467