vim: moved backup dir in .vim/tmp
parent
5dd2c00036
commit
92cbdb002c
|
@ -73,12 +73,12 @@ set undolevels=150
|
||||||
|
|
||||||
set backup
|
set backup
|
||||||
|
|
||||||
if filewritable(expand("~/.vim/backup")) == 2
|
if filewritable(expand("~/.vim/tmp/backup")) == 2
|
||||||
set backupdir=$HOME/.vim/backup
|
set backupdir=$HOME/.vim/tmp/backup
|
||||||
else
|
else
|
||||||
if has("unix") || has("win32unix")
|
if has("unix") || has("win32unix")
|
||||||
call system("mkdir $HOME/.vim/backup -p")
|
call system("mkdir $HOME/.vim/tmp/backup -p")
|
||||||
set backupdir=$HOME/.vim/backup
|
set backupdir=$HOME/.vim/tmp/backup
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue