aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-18 10:36:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-18 10:36:03 +1200
commit5bdb2da73bfa63dd2af4b69c999374f1833dbc77 (patch)
treecce229bfc713b84b107fe12c4535807a389abb18
parentMake 'backupskip' with Unix paths depend on +unix (diff)
downloaddotfiles-5bdb2da73bfa63dd2af4b69c999374f1833dbc77.tar.gz
dotfiles-5bdb2da73bfa63dd2af4b69c999374f1833dbc77.zip
Remove double-trail-slash from 'backupdir'
I forgot that it only works for 'directory' and 'undodir'.
-rw-r--r--vim/vimrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index d823568c..d93537df 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -53,11 +53,11 @@ set backspace+=start " The start of current insertion
" Do keep backups
set backup
-" Try to keep them all in one system-appropriate dir, with full path
+" Try to keep them all in one system-appropriate dir
if has('unix')
- set backupdir^=~/.vim/cache/backup//
+ set backupdir^=~/.vim/cache/backup
elseif has('win32') || has('win64')
- set backupdir^=~/vimfiles/cache/backup//
+ set backupdir^=~/vimfiles/cache/backup
endif
" Don't back up stuff in /dev/shm or /var/tmp