简体   繁体   English

VIM问题:当.swp文件存在时,是否可以添加“(D)elete”选项

[英]VIM Question: When a .swp file exists, is it possible to add a “(D)elete” option

Many times when I lose connection to my development server, I just log back in and have a .swp file to deal with when I re-open. 很多时候,当我失去与开发服务器的连接时,我只需重新登录并在重新打开时有一个.swp文件来处理。 Does vim have a mod to allow deleting by initial prompt? vim有一个mod允许通过初始提示删除吗?

Thanks 谢谢

I do have that option when a .swp file exists... 当.swp文件存在时,我确实有这个选项...

Swap file ".tjohej.swp" already exists! 交换文件“.tjohej.swp”已经存在! [O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort: [O] pen只读,(E)dit无论如何,(R)ecover,(D)elete it,(Q)uit,(A)bort:

Perhaps a version thing? 也许是版本的东西? I've got.. VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jan 14 2010 06:43:50) Included patches: 1-330 我有... VIM - Vi IMproved 7。2(2008年8月9日,2010年1月14日编译06:43:50)包含的补丁:1-330

I use the shortmess option to avoid the Attention Message. 我使用shortmess选项来避免注意消息。

set shortmess+=A 设置shortmess + = A.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM