Attempt to create vim tmp and undo folders at start
This commit is contained in:
parent
6e07992ae0
commit
e395b46a4b
2
.vimrc
2
.vimrc
|
@ -24,6 +24,8 @@ set backspace=indent,eol,start
|
|||
if has("vms")
|
||||
set nobackup " do not keep a backup file, use versions instead
|
||||
else
|
||||
" Attempt to create ~/.vim/tmp and ~/.vim/undo
|
||||
silent !mkdir -p ~/.vim/{tmp,undo} > /dev/null 2>&1
|
||||
set dir=~/.vim/tmp " Set the swapfile location elsewhere to reduce breadcrumbs.
|
||||
set backup " keep a backup file (restore to previous version)
|
||||
set backupdir=~/.vim/tmp " keep backup (.swp) files in a specific directory instead of the same dir as the file being edited
|
||||
|
|
Loading…
Reference in New Issue