aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-06 23:02:13 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-06 23:09:18 +1200
commita30ad11a3c99b257b86474beadb97c446eeb22f4 (patch)
tree9767df8fa90eafba8f549d40f0ddefe83a79ff6f
parentMerge branch 'release/v5.19.0' into develop (diff)
downloaddotfiles-a30ad11a3c99b257b86474beadb97c446eeb22f4.tar.gz
dotfiles-a30ad11a3c99b257b86474beadb97c446eeb22f4.zip
Adjust use of part addenda to *dir options
-rw-r--r--vim/vimrc7
1 files changed, 4 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 908a0991..8e332960 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -24,8 +24,9 @@ set backspace+=start " Before the start of current insertion
" Keep backup files in dedicated directory; add trailing double-slash to keep
" full path in name, if Vim is new enough to support that
set backup
-execute 'set backupdir^='.vimrc#EscapeSetPart($MYVIM.'/cache/backup')
- \ . (vimrc#Version('8.1.251') ? '//' : '')
+execute 'set backupdir^='.vimrc#EscapeSetPart(
+ \ $MYVIM.'/cache/backup'.(vimrc#Version('8.1.251') ? '//' : '')
+ \ )
" Add some *nix paths not to back up
if has('unix')
@@ -55,7 +56,7 @@ set confirm
set cpoptions+=J
" Keep swap files in dedicated directory, named with full path
-execute 'set directory^='.vimrc#EscapeSetPart($MYVIM.'/cache/swap')
+execute 'set directory^='.vimrc#EscapeSetPart($MYVIM.'/cache/swap//')
" If the environment didn't set an encoding, use UTF-8, not ASCII
if !exists('$LANG')