0

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 1

1

Use a pipe character:

:w|!echo "some stuff"

You can find more about it in :help :bar.

2
  • Why the |. Vim documentation :help |says only about pipe as screen column motion, but no use in ex mode
    – Herdsman
    Commented Apr 27, 2020 at 11:45
  • @Herdsman Yeah, but see edit.
    – user596332
    Commented Apr 27, 2020 at 11:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .