3 ms·
I don't have much to add to the thread except for: set undofile which will allow for persistent undo, i.e. undoing changes even after closing a file.
by mitjak 15y ago
I don't have much to add to the thread except for:
set undofile
which will allow for persistent undo, i.e. undoing changes even after closing a file.
- thristian 15y agoI also "set undodir=/tmp" so that it doesn't litter my working directory with persistent undo files.
- telemachos 15y agoI prefer a variant of that. You can specify more than one place (that is, first choice, second choice, etc.) with a comma-separated list. I do this: " Vim 7.3, now with persistent undo set undofile set undodir=$HOME/.vim_undo,/tmp That way, if I've remembered to create a .vim_undo folder, they go there (best option). Otherwise, /tmp. (You can do the same thing when specifying places for swap and backup files.) As the comment suggests, the undo feature is only 7.3 or better.
- deleted 15y ago[deleted]