Closed GoogleCodeExporter closed 9 years ago
This is expected behavior. By default Vim discards undo history when you
abandon a buffer. You have a few options:
1. Set the 'hidden' option so Vim doesn't abandon the buffer.
2. Set the 'undofile' option so Vim saves the undo information in a file (also
lets you quit Vim and relaunch Vim and keep the undo info).
3. Open a new window or tab for file B instead of switching buffers in the same
window.
Original comment by fritzoph...@gmail.com
on 11 Jul 2013 at 3:03
Original comment by chrisbr...@googlemail.com
on 30 Sep 2014 at 8:39
Original issue reported on code.google.com by
gu...@ascomp.ch
on 11 Jul 2013 at 12:04