How do I replace a tab (or any other character) with a hard return…

…(newline) character?

You can replace a tab (or any other character) with a hard return (newline) character using the following command:

    :s/\t/\r/

Note that in the above command, if you use \n instead of \r, then the tab characters will not be replaced by a new-line character.

Comments (1)


Pepsh Pepshinsky

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


Speak Your Mind