I'd like to select some text in vim and then execute it in bash. I know of the following procedure:
- select text using
Vorv :!!
However, this replaces the selection with the output of the command. What if I don't want that?
Answer
Type the :w command like this:
:w !command
As you type it, it will appear like this:
:'<,'>w !command
See
:help :w_c
No comments:
Post a Comment