I'm trying to replace each , in the current file by a new line:
:%s/,/\n/g
But it inserts what looks like a ^@ instead of an actual newline. The file is not in DOS mode or anything.
What should I do?
EDIT: If you are curious, like me, check the question Why is \r a newline for Vim? as well.
本文介绍如何在Vim编辑器中将文件内的逗号替换为真正的换行符而不是特殊字符,解决用户在使用Vim进行文本替换操作时遇到的问题。

被折叠的 条评论
为什么被折叠?



