Vim loses undo history when changing buffers

前端 未结 2 1475
攒了一身酷
攒了一身酷 2021-02-01 11:48

If I\'m working in a file, change to another buffer, and then change back, I have lost my undo history.

  1. vim File1.txt - make a bunch of changes &
2条回答
  •  别跟我提以往
    2021-02-01 12:34

    You could :set hidden. This means that the buffer of the old file will only be hidden when you switch to the new file. When you switch back, you still have your undo history.

提交回复
热议问题