[nvim] Make undodir and shdata user-dependent
This commit is contained in:
parent
7725111195
commit
da17543917
1 changed files with 3 additions and 2 deletions
|
@ -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 . "//"
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue