swap file "*.swp" already exists!的解决方法
来源:互联网 发布:pyqt4 windows 编辑:程序博客网 时间:2024/05/22 15:34
Linux下编程难免会开启多次vim编辑, 同一个文件如果在上一次编辑时未进行保存,则在下一次想要进行编辑时就会出现:
swap file "*.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
原因:
使用vim编辑文件实际是先copy一份临时文件并映射到内存给你编辑, 编辑的是临时文件, 当执行:w后才保存临时文件到原文件,执行:q后才删除临时文件。
每次启动编辑时都会检索这个文件是否已经存在临时文件, 有则询问如何处理,就会出现如上情景。
解决方法(删除这个临时文件即可):
rm *.swp
0 0
- swap file "*.swp" already exists!的解决方法
- swap file "*.swp" already exists!的解决方法
- swap file "*.swp" already exists!的解决方法
- swap file “*.swp”already exists
- Git-解释“Swap file .MERGE_MSG.swp already exists”的问题
- 解决 swap file “*.swp”already exists!问题
- Swap file ".Podfile.swp" already exists!
- Swap file ".Podfile.swp" already exists!
- 解决Swap file ".ceshi.c.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以下错误如何解决?
- File already exists: filesystem '/path/file', transaction svn常见错误解决方法
- 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”
- C++多线程编程
- 2017 Pycharm激活码
- PAT-A-1069. The Black Hole of Numbers (20)
- Ubuntu16.04+Tensorflow+CUDA8.0
- HihoCoder
- swap file "*.swp" already exists!的解决方法
- mybatis3 autoMappingBehavior
- 自定义dialog有特殊效果的背景图时,背景四角阴影解决方案
- 对于文件编码格式的浅显理解
- Stack的实现
- 在一个 Activity 中改变另一个 Activity 的 UI
- SSH实战OA 05:Struts2标签
- 设计模式->结构型模式->代理模式
- DrawerLayout、Toolbar 的详细用法