How can I retain Vim undo history but disallow hiding modified buffers? -


similar this question, want keep undo history when change buffers. however, if use set hidden, vim no longer prompts me when switch buffer changes.

how can retain unsaved buffer prompt retain undo history?

you can use new persistent undo feature in vim 7.3.

set undodir=~/.vim/undodir set undofile 

for details, see documentation at

:help persistent-undo 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -