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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…