diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-06 23:02:13 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-06 23:09:18 +1200 |
commit | a30ad11a3c99b257b86474beadb97c446eeb22f4 (patch) | |
tree | 9767df8fa90eafba8f549d40f0ddefe83a79ff6f | |
parent | Merge branch 'release/v5.19.0' into develop (diff) | |
download | dotfiles-a30ad11a3c99b257b86474beadb97c446eeb22f4.tar.gz dotfiles-a30ad11a3c99b257b86474beadb97c446eeb22f4.zip |
Adjust use of part addenda to *dir options
-rw-r--r-- | vim/vimrc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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') |