Does VIM support comments in command-line mode?
I have tried the most popular variants including .VIMRC comments but neither worked:
:echo "hello" // echo usage
:echo "hello" /* echo usage */
:echo "hello" "echo usage
Or do the comments in this mode just don't fit in the VIM paradigm?
Update: It seems there is a problem with the commands that end with ". Because all the others work, e.g. copying a buffer content:
:let @a=@0 " buffer copying
There must be some escaping. The suggested solution with |" seems to work for
:echo "hello" |" echo usage
but doesn't work for user-defined commands (those that are defined in .vimrc and whose names start with a capital letter) e.g.
:SearchHyphenation " user-defined
:echo "hello" |" echo usage
.-bar
attribute; otherwise with:exe
: 0x0.st/irhy.txt