dotfiles/symlinks/config/nvim/plugin/undoconf.vim

11 lines
347 B
VimL

" -----------------------------------------------------------------------------
" - Undo configuration -
" -----------------------------------------------------------------------------
set undofile
" Disable persistent undofile for temporary files!
augroup undoconf
autocmd!
autocmd BufWritePre /tmp/* setlocal noundofile
augroup END