[英]E488: Trailing characters in Vim mapping
I want to map F5 on a command and typed: 我想在命令上映射F5并输入:
:cmap <F5> :make | vert copen 100<CR>
Then I get E488. 然后我得到E488。 What to do? 该怎么办?
Escape your |
逃脱您的|
: :
:cmap <F5> :make \| vert copen 100<CR>
Right now it tries to 现在它试图
cmap <F5> :make
and then
vert copen 100<CR>
Escaping the |
转义|
delimiter ensure your mapping is preserved. 定界符确保您的映射被保留。
Be aware that the \\|
请注意, \\|
escaping may not always work, as stated in :help map_bar
. 如:help map_bar
所述,转义可能并不总是有效。 Alternatives are: <Bar>
and ^V|
替代方法是: <Bar>
和^V|
. 。
Thanks @Randy Morris. 谢谢@兰迪·莫里斯。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.