dotfiles/symlinks/vim/plugin/undoconf.vim

12 lines
380 B
VimL
Raw Permalink Normal View History

2021-01-07 08:09:41 +00:00
" -----------------------------------------------------------------------------
" - Undo configuration -
" -----------------------------------------------------------------------------
set undofile
let &undodir=$VIMHOME.'/undodir'
" Disable persistent undofile for temporary files!
augroup undoconf
autocmd!
autocmd BufWritePre /tmp/* setlocal noundofile
augroup END