Mac vim ~/.bash_profile 报错 Found a swap file by the name “.bash_profile.swp“
vim 报错 E325: ATTENTION Found a swap file by the name “.bash_profile.swp”这是因为在编辑该文件的时候没有保存就异常退出了。vim为了保证文件的安全性会在编辑文件时创建一个交换文件swap file。解决办法输入 q(退出)输入:rm -f ~/.bash_profile.swp输入:vim ~/.bash_profile(继续编辑的情况下) 或 source ~/.bash_profile(无需编辑的情况)Pref