Swap file ".Podfile.swp" already exists!
来源:互联网 发布:淘宝开店推广费用 编辑:程序博客网 时间:2024/05/17 17:18
解决Swap file ".ceshi.c.swp" already exists!问题
重点:解决办法
用下面的命令删除swp文件
关于swp文件:使用vi,经常可以看到swp这个文件,那这个文件是怎么产生的呢,当你打开一个文件,vi就会生成这么一个.(filename)swp文件以备不测,如果你正常退出,那么这个.(filename)swp文件将会自动删除。
因此.(filename)swp文件就是你没有正常退出vi或者vim编辑器时留下来的!比如:强行关闭vi或vim时,电源突然断掉,或者你使用了Ctrl-zz。(正常的退出方式应该是Shift-ZZ)
这时候就会出现下面的情况了
<span style="font-family:SimSun;color:#ffffff;background-color: rgb(0, 0, 0);">E325: ATTENTIONFound a swap file by the name ".ceshi.c.swp" owned by: root dated: Sat Jul 4 19:51:46 2015 file name: /c/ceshi.c modified: YES user name: root host name: c66-WR process ID: 2801While opening file "ceshi.c" dated: Sun Jul 5 12:38:54 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 ceshi.c" to recover the changes (see ":help recovery"). If you did this already, delete the swap file ".ceshi.c.swp" to avoid this message.Swap file ".ceshi.c.swp" already exists![O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit:</span>
用下面的命令删除swp文件
rm .{your file name}.swp
例如:我的文件名是ceshi.c 那么就用这样的命令:rm .ceshi.c.swp (当然你前面也可以加-rf强制删除)
问: (vi 一个文件时怎么样可以不让它产生.swp文件?或不让他提示【“Swap file ".文件名.swp" already exists![O]pen Read-Only, (E)dit anyway, (R)ecover, (Q)uit:】)
处理方法: 打开 vi /etc/vimrc 并在末尾添加 set noswapfile 后保存退出 OK
0 0
- Swap file ".Podfile.swp" already exists!
- Swap file ".Podfile.swp" already exists!
- swap file “*.swp”already exists
- swap file "*.swp" already exists!的解决方法
- 解决 swap file “*.swp”already exists!问题
- swap file "*.swp" already exists!的解决方法
- swap file "*.swp" already exists!的解决方法
- 解决Swap file ".ceshi.c.swp" already exists!问题
- Git-解释“Swap file .MERGE_MSG.swp already exists”的问题
- Swap file ".." already exists!
- Swap file "/etc/.hosts.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it,
- 删除编辑文件警告Swap file “…” already exists!
- 删除编辑文件警告Swap file “…” already exists!
- 出现Swap file….already exists以下错误如何解决?
- Found a swap file by the name “.git/.MERGE_MSG.swp”
- Found a swap file by the name ".jsidInspector.py.swp"
- Found a swap file by the name “.git/.MERGE_MSG.swp”
- Hadoop:Found a swap file by the name "/etc/.hosts.swp"
- ios开发--地址选择封装的一个demo
- Django 登陆访问权限@login_required
- 5月英语总结
- IOS开发之Xcode下使用多target, 让同一份代码,一个工程 Project 管理多个app
- js基础-form对象
- Swap file ".Podfile.swp" already exists!
- 3.3 贝叶斯线性回归
- HDOJ 5411 CRB and Puzzle (矩阵快速幂)
- Middle-题目63:147. Insertion Sort List
- 【JavaScript 】函数柯里化
- 欢迎使用CSDN-markdown编辑器
- Shell字符串
- 说说JSON和JSONP,也许你会豁然开朗
- yum中的python版本错误(转载)