aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-09 23:37:45 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-09 23:37:45 +1200
commit29a45a09b7c2072222b0571eecfd88073bf785d2 (patch)
tree3cf0906060e7797203c65b1802831c58d36c7a46
parentCombine 'dict' and 'tsr' :set and move down (diff)
downloaddotfiles-29a45a09b7c2072222b0571eecfd88073bf785d2.tar.gz
dotfiles-29a45a09b7c2072222b0571eecfd88073bf785d2.zip
Restore -nargs=1 for :EnsureDir
It works fine in Vim 7.0 when passing MYVIM as a single target.
-rw-r--r--vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 3a735cbf..e7622c54 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -148,7 +148,7 @@ function s:EnsureDir(path) abort
return isdirectory(path)
\ || exists('*mkdir') && mkdir(path, 'p', 0700)
endfunction
-command! -complete=dir -nargs=+ EnsureDir
+command! -complete=dir -nargs=1 EnsureDir
\ call s:EnsureDir(<q-args>)
" Now that we have a clean means to create directories if they don't already