E325: ATTENTION Found a swap file by the name "~/.zshrc.swp" owned by:
This is the error message I have been getting from following an instructional video for a computer science course, and when my laptop got an unexpected shut-off.
E325: ATTENTION
Found a swap file by the name "~/.zshrc.swp"
owned by: Jay dated: Thu Mar 04 04:49:41 2021
file name: Jay/.zshrc
modified: YES
user name: Jay host name: Jay-MBP
process ID: 7800
While opening file "/Users/Jay/.zshrc"
dated: Thu Mar 04 04:52:08 2021
NEWER than swap file!
(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 /Users/Jay/.zshrc"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/Users/JewooLee/.zshrc.swp"
to avoid this message.
Swap file "~/.zshrc.swp" already exists!
[O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
Then, when I press r, I get the following message:
Last login: Thu Mar 4 04:49:28 on ttys000
The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Jay-MBP:~ Jay$ vim ~/.zshrc
Jay-MBP:~ Jay$ vim ~/.zshrc
Jay-MBP:~ Jay$ vim ~/.zshrc
Jay-MBP:~ Jay$ vim ~/.zshrc
Jay-MBP:~ Jay$ vim ~/.zshrc
Jay-MBP:~ Jay$ vim ~/.zshrc
Jay-MBP:~ Jay$ vim ~/.zshrc
file name: ~Jay/.zshrc
modified: YES
user name: Jay host name: Jay-MBP
process ID: 7193
8. .zshrc.swo
owned by: Jay dated: Thu Mar 04 03:12:04 2021
file name: ~Jay/.zshrc
modified: YES
user name: Jay host name: Jay-MBP
process ID: 4932
9. .zshrc.swp
owned by: Jay dated: Thu Mar 04 04:49:41 2021
file name: ~Jay/.zshrc
modified: YES
user name: Jay host name: Jay-MBP
process ID: 7800
In directory ~/tmp:
-- none --
In directory /var/tmp:
-- none --
In directory /tmp:
-- none --
Enter number of swap file to use (0 to quit):
Please help me with this error, I am having so much trouble trying to fix this issue.
Thank you.