3 ms·
I also "set undodir=/tmp" so that it doesn't litter my working directory with persistent undo files.
by thristian 15y ago
I 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.