How to Recover from “Recovering vi editor sessions”

vi image

Recently, a ssh session terminated while editing a text file.  Unfortunately, tmux was not utilized and the session ended abruptly.  Not giving it much thought, the server was rebooted and during the dmesg output, the following message was produced: “recovering vi editor session”.

After searching the internet, I discovered vi saves its session by default in “/var/tmp/vi.recover”.  Since the saved sessions were not need, the contents of the directory were deleted and the resulting error message on boot up disappeared as well.

Leave a Reply

Your email address will not be published. Required fields are marked *