vim 文本编辑器排错
来源:互联网 发布:sql必知必会 百度云 编辑:程序博客网 时间:2024/06/05 10:30
例如:
问题描述:
E325: ATTENTION
Found a swap file by the name "/etc/.my.cnf.swp"
owned by: root dated: Fri Jan 9 16:14:10 2015
file name: /etc/my.cnf
modified: YES
user name: root host name: localhost.localdomain
process ID: 10223
While opening file "/etc/my.cnf"
dated: Sun Jan 11 22:57:22 2015
NEWER than swap file!
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /etc/my.cnf"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/etc/.my.cnf.swp"
to avoid this message.
Swap file "/etc/.my.cnf.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
问题描述:
这是由于在编辑该文件的时候异常退出了,因为vim在编辑文件时会创建一个交换文件swap file以保证文件的安全性。
解决方案:
每次打开这个文件都会出现这个警告,为了去掉这个警告,需要删除这个swap文件: rm -f /etc/.my.cnf.swap
这样烦人的警告就消失了。 有时是 删除 rm -f .my.cnf.swap
查看一下:ls -a 就可以看到.my.cnf.swap 文件
0 0
- vim 文本编辑器排错
- Vim/Vi文本编辑器
- 文本编辑器VIM 入门
- 文本编辑器vim/vi
- 深入文本编辑器Vim
- 文本编辑器VI/VIM
- Linux文本编辑器Vim
- vim文本编辑器入门
- Vi、VIM文本编辑器
- VIM文本编辑器
- Vim 文本编辑器
- VIM文本编辑器(笔记)
- 文本编辑器Vim
- Vim 文本编辑器主要内容
- vim文本编辑器主要内容
- Vim 文本编辑器主要内容
- Vim 文本编辑器主要内容
- Vim 文本编辑器主要内容
- iOS 查看ipa包中的文件格式以及图片
- 一种基于Rsync算法的数据库备份方案设计
- mysql 中一些不常用的用法
- Stanford机器学习课程笔记——神经网络的表示
- Jedis连接池的使用
- vim 文本编辑器排错
- 前言
- 图片缩放时java.lang.IllegalArgumentException: pointerIndex out of range解决方案
- Skype SILK codec overview
- 在命令行中通过adb shell am broadcast发送广播通知以及Android的常用adb命令
- OGG-00952 Could not delete rows from ogg.GGS_MARKER, no database specified.
- 将数据保存的SDCard
- 盒子情缘:渐行渐远渐无书
- C++ static成员变量与static成员函数