【vim】Linux下使用vim编辑文件,出现^M是什么意思?

nodpad++  字符编码设置



回车:用“\r”表示,ASCII码中的“代码”为CR,意义是将光标移到当前行的首位; 

换行:用“\n”表示,ASCII码中的“代码”为LF,意义是将光标移到下一行。 




DOS、Mac 和 Unix 文件格式

https://www.cnblogs.com/yelongsan/p/10025134.html


CRLF、CR、LF详解

https://www.jianshu.com/p/b03ad01acd69


Vim 中如何去掉 ^M 字符?

windows环境下用Vim打开文件后出现好多^M字符,什么原因,怎么去掉?

https://www.zhihu.com/question/22130727



How to remove CTRL-M (^M) characters from a file in Linux?

https://support.microfocus.com/kb/doc.php?id=7014821



What is the ^M character called?

https://unix.stackexchange.com/questions/134695/what-is-the-m-character-called


Linux 替换^M字符方法

https://blog.csdn.net/lml200701158/article/details/52350659


What does ^M character mean in Vim?

https://stackoverflow.com/questions/5843495/what-does-m-character-mean-in-vim


Linux下使用vim编辑文件,出现^M是什么意思?

https://blog.csdn.net/yuhengyue/article/details/78892861

最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

友情链接更多精彩内容