0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Viにおける「E325:ATTENTIONエラー」への対処

Last updated at Posted at 2020-12-11

E325:ATTENTIONエラー」

はじめに

viでファイルを開こうとすると

E325: ATTENTION
Found a swap file by the name "/var/tmp/******
          owned by: ************   dated: 木 12 10 22:52:04 2020
         file name: /private/etc/****
          modified: YES
         user name: *******   host name: ***
        process ID: *****
While opening file "/etc/*****"
      CANNOT BE FOUND
(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/******"
    to recover the changes (see ":help recovery").
    If you did this already, delete the swap file "/var/tmp/********"
    to avoid this message.

Swap file "/var/tmp/*******" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:

というエラーが出てきてしまう。

原因

前回、編集中に閉じてしまい、多重編集をしようとしている状況であるため。

対処

Dでデリートして、編集モードに入れるのでそこで:qで閉じる。

最後に

かなり見づらい記事になっているため、おそらく自分の備忘録としてしか使われないだろう。
今後の記事は見やすさも意識して書く必要がある。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?