Is it possible in vim to read directly into a new buffer?
I have managed to find many things working in a different direction, but so far I have not had much luck.
I want to be able read
from the command line to a new buffer. I expect to have something like:
:r!tac % | new
and the new buffer will contain the output tac %
Is there a sane way to do this?
+3
Wayne werner
source
to share
1 answer
Ahah - It turns out to be used #
, which I think is the last used buffer (?)
:enew | r!tac #
Will read the output tac <current buffer>
into a new buffer.
+6
Wayne werner
source
to share