diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-09 23:37:45 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-09 23:37:45 +1200 |
commit | 29a45a09b7c2072222b0571eecfd88073bf785d2 (patch) | |
tree | 3cf0906060e7797203c65b1802831c58d36c7a46 | |
parent | Combine 'dict' and 'tsr' :set and move down (diff) | |
download | dotfiles-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/vimrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |