aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-10 16:15:17 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-10 16:15:17 +1200
commit526cbdb3806c6c14ae97d3df1b6a6253b5bc633a (patch)
tree3882b4ddfd33d26876f1bdf1b4c1a67fecca4c82
parentPrevent me from using `which` (diff)
downloaddotfiles-526cbdb3806c6c14ae97d3df1b6a6253b5bc633a.tar.gz
dotfiles-526cbdb3806c6c14ae97d3df1b6a6253b5bc633a.zip
Add bang to function declaration so it redefines
-rw-r--r--vim/vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/vimrc b/vim/vimrc
index f759d0f1..5da1be46 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -143,7 +143,7 @@ endif
" final one, since every directory we want to create in this file should be
" locked down in this way.
"
-function s:EnsureDir(path) abort
+function! s:EnsureDir(path) abort
let path = expand(a:path)
return isdirectory(path)
\ || exists('*mkdir') && mkdir(path, 'p', 0700)