How do I enter a carriage return character in a search pattern?

You can either use ‘\r’ or <CTRL-V><CTRL-M> to enter a carriage return character in a pattern. In Vim scripts, it is better to use ‘\r’ for the carriage return character.

Comments (1)


Pepsh Pepshinsky

Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE


Speak Your Mind