From: Samir Benmendil Date: Sat, 14 Jan 2023 01:05:49 +0000 (+0000) Subject: vim: don't set undodir in nvim X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/12e02a5137ea8a462bc1a7c8755ab8eed83bb235?ds=sidebyside vim: don't set undodir in nvim --- diff --git a/vim/vimrc b/vim/vimrc index 9af477e..092f594 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -309,7 +309,9 @@ set backupskip+=.netrc " skip netrc set backupskip+=/dev/shm/pass* " skip passwordstore files set undofile " persistent undo history -set undodir=$XDG_CACHE_HOME/vim/undo// +if !has('nvim') + set undodir=$XDG_CACHE_HOME/vim/undo// +endif augroup undoskip au!