I want to send a visual block as a stand-in for a command, such as
:!echo < something from the visual block
How could I do this in vim?
I want to send a visual block as a stand-in for a command, such as
:!echo < something from the visual block
How could I do this in vim?
Easiest is to y
ank the visual selection (while in visual mode) into a register, and then start the command (:!echo ...
) and insert the register's contents on the command-line via <C-R>"
.
One way is to use the Command-line window via q:
, as shown in this screen capture: