Why does replacement of something by using
:%s/,/\n/gc in vim gives me ^@ instead of giving me newline. Sed replacement works perfectly
sed s/,/'\n'/g. Any idea how to do sed thingy in Vim and save time.
Simply because a line break in the replacement component of the substitution command is represented by
\r in Vim rather than
Alernatively, you can use this:
^M is entered by typing Ctrl+V then Enter
<NUL>in the file) (does NOT break the line)