每次我使用sudo vi ~/.bash_profile
编辑.bash_profile文件时,都会提示Found a swap file by the name "~/.bash_profile.swp"
,受不了了,决定解决这个问题。
问题描述截图

原因:存在了同名的文件,但是这个同名的文件格式不一样。这个文件.bash_profile.swp是由于我之前创建编辑内容的时候没有正常保存导致的。
解决办法:删除该文件即可。

每次我使用sudo vi ~/.bash_profile
编辑.bash_profile文件时,都会提示Found a swap file by the name "~/.bash_profile.swp"
,受不了了,决定解决这个问题。
本文标题:Mac编辑文件时候,总会先提示 Found a swap fil
本文链接:https://www.haomeiwen.com/subject/razbeqtx.html
网友评论