aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin/auto_undodir.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/plugin/auto_undodir.vim')
-rw-r--r--vim/plugin/auto_undodir.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/plugin/auto_undodir.vim b/vim/plugin/auto_undodir.vim
index 4382fe18..a38dce02 100644
--- a/vim/plugin/auto_undodir.vim
+++ b/vim/plugin/auto_undodir.vim
@@ -37,12 +37,12 @@ if !isdirectory(expand(s:undodir))
" (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:undodir))
+ let l:mkdir = '!mkdir -m 0700 -p '
elseif has('win32') || has('win64')
- silent! execute '!mkdir '
- \ . shellescape(expand(s:undodir))
+ let l:mkdir = '!mkdir '
endif
+ silent! execute l:mkdir
+ \ . shellescape(expand(s:undodir))
endif
endif