aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/auto_swapdir.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-01-18 13:05:39 +1300
committerTom Ryder <tom@sanctum.geek.nz>2018-01-18 13:05:39 +1300
commite2ef4845869aa38823542034473b5d6ce6ba2f3d (patch)
treedea5af9adf4481baf40c592cd0ce9da665b32960 /vim/plugin/auto_swapdir.vim
parentMerge branch 'release/v0.23.0' (diff)
parentBump version number to 0.24.0 (diff)
downloaddotfiles-e2ef4845869aa38823542034473b5d6ce6ba2f3d.tar.gz
dotfiles-e2ef4845869aa38823542034473b5d6ce6ba2f3d.zip
Merge branch 'release/v0.24.0'v0.24.0
* release/v0.24.0: Bump version number to 0.24.0 Always add --log to `git merge` Refactor directory creation in plugins Remove HTML and PHP syntax highlighting tweaks Clear unwanted syntax group, don't link to NONE
Diffstat (limited to 'vim/plugin/auto_swapdir.vim')
-rw-r--r--vim/plugin/auto_swapdir.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/plugin/auto_swapdir.vim b/vim/plugin/auto_swapdir.vim
index 7d5940aa..2f9e6d25 100644
--- a/vim/plugin/auto_swapdir.vim
+++ b/vim/plugin/auto_swapdir.vim
@@ -34,12 +34,12 @@ if !isdirectory(expand(s:swapdir))
" (Fortunately, Unix and Windows are the only OS types in the world)
elseif has('*shellescape')
if has('unix')
- silent! execute '!mkdir -m 0700 -p '
- \ . shellescape(expand(s:swapdir))
+ let l:mkdir = '!mkdir -m 0700 -p '
elseif has('win32') || has('win64')
- silent! execute '!mkdir '
- \ . shellescape(expand(s:swapdir))
+ let l:mkdir = '!mkdir '
endif
+ silent! execute l:mkdir
+ \ . shellescape(expand(s:swapdir))
endif
endif