<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Vi on Lucien's Blog</title><link>https://www.lucien116.com/tags/vi/</link><description>Recent content in Vi on Lucien's Blog</description><generator>Hugo</generator><language>zh-Hans</language><lastBuildDate>Sat, 03 Sep 2016 21:15:45 +0000</lastBuildDate><atom:link href="https://www.lucien116.com/tags/vi/feed.xml" rel="self" type="application/rss+xml"/><item><title>linux下vi操作Found a swap file by the name</title><link>https://www.lucien116.com/archives/107/</link><pubDate>Sat, 03 Sep 2016 21:15:45 +0000</pubDate><guid isPermaLink="false">http://www.lucien116.com/?p=107</guid><description>&lt;p&gt;当我在linux下用vi打开Test.java文件时&lt;/p&gt;
&lt;p&gt;[root@localhost tmp]# vi Test.java&lt;/p&gt;
&lt;p&gt;会出现如下信息：&lt;/p&gt;
&lt;p&gt;Dos代码&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;E325: ATTENTION&lt;/li&gt;
&lt;li&gt;Found a swap file by the name &amp;ldquo;.Test.java.swp&amp;rdquo;&lt;/li&gt;
&lt;li&gt;         owned by: root   dated: Wed Dec  713:52:562011&lt;/li&gt;
&lt;li&gt;         file name: /var/tmp/Test.java&lt;/li&gt;
&lt;li&gt;         modified: YES&lt;/li&gt;
&lt;li&gt;         user name: root   host name: localhost&lt;/li&gt;
&lt;li&gt;         process ID: 26153 (still running)&lt;/li&gt;
&lt;li&gt;While opening file &amp;ldquo;Test.java&amp;rdquo;&lt;/li&gt;
&lt;li&gt;             dated: Wed Dec  714:00:462011&lt;/li&gt;
&lt;li&gt;      NEWER than swap file!&lt;/li&gt;
&lt;li&gt;(1) Another program may be editing the same file.&lt;/li&gt;
&lt;li&gt;    If this is the case, be careful not to end up with two&lt;/li&gt;
&lt;li&gt;    different instances of the same file when making changes.&lt;/li&gt;
&lt;li&gt;    Quit, or continue with caution.&lt;/li&gt;
&lt;li&gt;(2) An edit session for this file crashed.&lt;/li&gt;
&lt;li&gt;    If this is the case, use &amp;ldquo;:recover&amp;rdquo; or &amp;ldquo;vim -r Test.java&amp;rdquo;&lt;/li&gt;
&lt;li&gt;    to recover the changes (see &amp;ldquo;:help recovery&amp;rdquo;).&lt;/li&gt;
&lt;li&gt;    If you did this already, delete the swap file &amp;ldquo;.Test.java.swp&amp;rdquo;&lt;/li&gt;
&lt;li&gt;    to avoid this message.&lt;/li&gt;
&lt;li&gt;&amp;ldquo;Test.java&amp;rdquo; 11L, 237C&lt;/li&gt;
&lt;li&gt;Press ENTER or type command to continue&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;原因是我之前有一次使用vi 操作Test.java文件时出现了异常中断，所以在当前目录下产生了一个.Test.java.swp文件&lt;/p&gt;</description></item></channel></rss>