I’ve been trying to find something that will let me run multiple commands on the same line in Vim, akin to using semicolons to separate commands in *nix systems or & in Windows. Is there a way to do this?
I’ve been trying to find something that will let me run multiple commands on
Share
A bar
|will allow you to do this. From:help :barExample:
:echo "hello" | echo "goodbye"Output:
NB: You may find that your
~/.vimrcdoesn’t support mapping|, or\|. In these cases, try using<bar>instead.