I want to map F5 on a command and typed:
:cmap <F5> :make | vert copen 100<CR>
Then I get 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. Alternatives are: <Bar> and ^V|.
Thanks @Randy Morris.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With