From 5bdb2da73bfa63dd2af4b69c999374f1833dbc77 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 18 Jul 2018 10:36:03 +1200 Subject: Remove double-trail-slash from 'backupdir' I forgot that it only works for 'directory' and 'undodir'. --- vim/vimrc | 6 +++--- 1 file 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 -- cgit v1.2.3