A bar |
will allow you to do this. From :help :bar
'|'
can be used to separate commands, so you can give multiple commands in one
line. If you want to use'|'
in an argument, precede it with'\'
.
Example:
:echo "hello" | echo "goodbye"
Output:
hello
goodbye
NB: You may find that your ~/.vimrc
doesn’t support mapping |
, or \|
. In these cases, try using <bar>
instead.