今天coding时需要把\n后边加\t,于是用%s/from/to/g 结果发现不行,调查后发现这样就可以了: 例如,替换文档所有的/n为\n %s#/n#\\n#g 即需要换带/时用s#from#to,而\n需要写成\\n