vimtricks.wiki Concise Vim tricks, one at a time.

How do you enable persistent undo across sessions?

Answer

set undofile undodir=~/.vim/undo//

Explanation

Enable undofile and set undodir to persist undo history to disk. You can undo changes even after closing and reopening a file.

Next

How do I visually select a double-quoted string including the quotes themselves?