diff --git a/.vimrc b/.vimrc index 36aaa1c..765fa1a 100644 --- a/.vimrc +++ b/.vimrc @@ -24,8 +24,9 @@ set backspace=indent,eol,start if has("vms") set nobackup " do not keep a backup file, use versions instead else + 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 files in a specific directory instead of the same dir as the file being edited + set backupdir=~/.vim/tmp " keep backup (.swp) files in a specific directory instead of the same dir as the file being edited set undofile " keep an undo file (undo changes after closing) set undodir=~/.vim/undo " keep undo files in a specific directory instead of the same directory as the file endif