In vim search and replace, newline is rendering as "^@"
This question already has an answer here:
In :s
's replacement field, you need to use r
not n
for newline characters.
^@ is the ASCII null character. Vim internally uses r for newlines (which is ^M), and n for ASCII null, so in the replacement, if you use n you're getting those null characters instead of newlines. See also :h sub-replace-special
链接地址: http://www.djcxy.com/p/49324.html上一篇: 用回车替换回车^ M