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