Recover a vim file from the .un~ file without the undo command

前端 未结 4 605
温柔的废话
温柔的废话 2021-02-12 20:10

How can I restore a vim file from the undo file without hitting undo?

I had a vim file that I saved while adding text. Then I ran a python comm

4条回答
  •  甜味超标
    2021-02-12 20:42

    A reminder that if you have set in your .vimrc file

    set backupdir=$HOME/tmp
    

    You may have temp copies of the files that are readable and that can be renamed

提交回复
热议问题