From 6029c1e505692d6c0b0eb9a52fb214a094ff9aba Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Sat, 4 Dec 2021 22:37:36 +0100 Subject: Vim/nvim undo history in .cache --- .vim/vimrc | 1 + 1 file changed, 1 insertion(+) (limited to '.vim/vimrc') diff --git a/.vim/vimrc b/.vim/vimrc index f4215e2..d527702 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -77,5 +77,6 @@ set viewdir=$XDG_DATA_HOME/vim/view | call mkdir(&viewdir, 'p') set backupdir=$XDG_CACHE_HOME/vim/backup | call mkdir(&backupdir, 'p') set directory=$XDG_CACHE_HOME/vim/swap | call mkdir(&directory, 'p') set undodir=$XDG_CACHE_HOME/vim/undo | call mkdir(&undodir, 'p') +set undofile if !has('nvim') | set viminfofile=$XDG_CACHE_HOME/vim/viminfo | endif -- cgit v1.2.3-70-g09d2