반응형
(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/junyeol.ryu/.zshrc" to recover the changes (see ":help recovery").
if you did this already, delete the swap file "/Users/junyeol.ryu/.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:
위와 같은 메시지가 떴다.
delete the swap file "/Users/junyeol.ryu/.zshrc.swp"
메시지를 자세히 읽어보면 (2) 항목에 "/Users/junyeol.ryu/.zshrc.swp" 를 지우란다.
지워보자
1. cd ../를 통해 해당 경로로 이동했다.
2. ls -all 을 입력하니 ./zshrc.swp 가 보인다.
3. rm -rf ./zshrc.swp를 지워준다.
아래 이미지는 그 과정이다.
반응형