change ^M to new line

 change ^M to new line

:%s/\r/\r/g

来源:https://stackoverflow.com/questions/811193/convert-m-windows-line-breaks-to-normal-line-breaks

 

如果直接替换,则

:%s/\r//g

 

可以直接问ChatGPT

posted @ 2024-05-06 14:18  profesor  阅读(12)  评论(0)    收藏  举报