[nvim] Make undodir and shdata user-dependent

This commit is contained in:
Midgard 2022-09-10 21:40:51 +02:00
parent 7725111195
commit da17543917
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -278,9 +278,10 @@ augroup END
" Keep undo history {{{2
" ======================
set undodir=/tmp/vim-undodir
let g:euid = substitute(system('echo $EUID'),'\n$','','''')
execute "set undodir=/tmp/vim-undodir-" . g:euid
set undofile
set directory^=/tmp/vim-swapfile//
execute "set directory^=/tmp/vim-swapfile-" . g:euid . "//"