# undofile today i came across a friend's `.vimrc` and found that he had some settings i'd never seen before: ``` set undofile set undodir=~/.vim/undo ``` i am now testing these settings out. you can use it do undo changes across vim sessions.[^1] [1]: http://vimdoc.sourceforge.net/htmldoc/options.html#'undofile'