在Vim中编辑文件时发生E325: ATTENTION错误的解决方案
在Vim中编辑文件时发生了以下错误
[ root @ zabbix~] # vim/usr/local/m SMTP/etc/msmtprc
E325: ATTENTION
foundaswapfilebythename '/usr/local/m SMTP/etc/. msmtprc.SWP '
owned by :根数据: thu may 22153360473360092014
filename :/usr/local/m SMTP/etc/msmtprc
修改:是
username : root hostname : zabbix.clvn.com.cn
进程id : 3122
wileopeningfile '/usr/local/m SMTP/etc/msmtprc '
dated : thu may 22153360443360522014
)1) anotherprogrammaybeeditingthesamefile。
If this is the case,be careful not to end up with two
differentinstancesofthesamefilewhenmakingchanges。
Quit,or continue with caution。
)2) aneditsessionforthisfilecrashed。
If this is the case,use ' : recover ' or ' vim-r/usr/local/m SMTP/etc/msmtprc '
orecoverthechanges (see ' :帮助恢复' )。
If you did this already,deletetheswapfile '/usr/local/m SMTP/etc/. msmtprc.SWP '
待办事项消息。
swap file '/usr/local/m SMTP/etc/. msmtprc.SWP ' already exists!
[O]pen Read-Only,(e ) dit anyway,(r ) ecover,(d ) elete it,(q ) uit,(a ) bort:
解决方法:
方法一、可以在上面出现的提示中按d删除临时文件
文艺小懒汉、
[ root @ bjsd-zabbix-x86v-app 01~] # CD/usr/local/m SMTP/etc
[ root @ bjsd-zabbix-x86v-app 01e TC ] # ls-a
. msmtprc .msmtprc.swp
[ root @ bjsd-zabbix-x86v-app 01e TC ] # RM-RF.msmtprc.SWP
虚拟机学习指南
快速掌握Vi编辑器
强大的Vim编辑器
在CentOS 6.2上构建Vim开发环境
Vim 7.4a版本,新的快速正则表达式引擎
安装CentOS 5.4高亮Vim编辑工具
Vim技术共享:C语言设置
在Ubuntu中设置虚拟机行号
使用Vim编辑器基本教程
在本文中,我们将永久更新链接目标。
,