aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/auto_swapdir.vim
diff options
context:
space:
mode:
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