aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-23 16:23:16 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-23 16:23:16 +1200
commit16df936fdb332f2654f1bb501c4de9e27c5be076 (patch)
treec993d63cba24fac3f31ff1004e19556a4f4020fb
parentRemove trailing whitespace (diff)
downloadvim-write-mkpath-16df936fdb332f2654f1bb501c4de9e27c5be076.tar.gz
vim-write-mkpath-16df936fdb332f2654f1bb501c4de9e27c5be076.zip
Limit BufWritePre running to plugin augroup
-rw-r--r--autoload/write_mkpath.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/write_mkpath.vim b/autoload/write_mkpath.vim
index 2503651..42cb49a 100644
--- a/autoload/write_mkpath.vim
+++ b/autoload/write_mkpath.vim
@@ -36,9 +36,9 @@ function! write_mkpath#(path) abort
silent keepalt file %
endif
- " Re-run the BufWritePre hooks, now that the directory exists and a useable
+ " Re-run the BufWritePre hook, now that the directory exists and a useable
" filename has been set; this will start this function again from the top,
" but stop when it sees the directory now exists
- doautocmd BufWritePre
+ doautocmd write_mkpath BufWritePre
endfunction