I want to paste multiple lines in command mode. (After the colon) How can I do this?
When pasting either a ^m pops out or just pastes the first line.
3 Answers
http://vimdoc.sourceforge.net/htmldoc/cmdline.html#: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 \.
Comments
As you're trying to paste some text, it must be in a register already. I assume it is unnamed register then to execute it press :@@
And, no, you cannot just insert it into the cmdline unless you've replaced all CRs with | (and even then it may not work properly depending on the command you paste).