How to save the history of Vim changes, but prevent the hide of modified buffers?

Like this question , I want to keep my cancellation history when I change buffers. However, if I use set hidden, vim no longer asks me when I switch from the buffer with changes.

How to save a saved buffer hint but save my cancellation history?

+3
source share
1 answer

You can use the new function of constant cancellation in Vim 7.3.

set undodir=~/.vim/undodir
set undofile

See the documentation in more details.

:help persistent-undo
+3
source

All Articles