I know how to run shell comands in vim with :!
bang syntax, But how can I done it after vim commands? for example :w!; !echo "some stuff"
? I cannot make semicolon and continue with bang. So is there a possibility do mix vim/shell commands, or the only way to do it is separately?
1 Answer
Use a pipe character:
:w|!echo "some stuff"
You can find more about it in :help :bar
.
-
Why the
|
. Vim documentation:help |
says only about pipe asscreen column
motion, but no use in ex mode– HerdsmanCommented Apr 27, 2020 at 11:45 -
@Herdsman Yeah, but see edit.– user596332Commented Apr 27, 2020 at 11:51