]> git.rmz.io Git - dotfiles.git/commitdiff
vim: don't set undodir in nvim
authorSamir Benmendil <me@rmz.io>
Sat, 14 Jan 2023 01:05:49 +0000 (01:05 +0000)
committerSamir Benmendil <me@rmz.io>
Sat, 14 Jan 2023 02:35:28 +0000 (02:35 +0000)
vim/vimrc

index 9af477ef6cbb071428d725a65319237fe8bc8502..092f59489d404dfec4cb9c6034999938d976d318 100644 (file)
--- 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 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!
 
 augroup undoskip
     au!