aboutsummaryrefslogtreecommitdiff
path: root/autoload/write_mkpath.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-23 16:24:49 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-23 16:24:49 +1200
commit2e8372a1c589ccd03207010c7777e155f2f7823a (patch)
tree4b3bd44aecf86a171aef6ad02ab76949ab2e07d5 /autoload/write_mkpath.vim
parentMerge branch 'hotfix/v2.1.1' (diff)
parentBump VERSION (diff)
downloadvim-write-mkpath-master.tar.gz
vim-write-mkpath-master.zip
Merge branch 'release/v2.2.0'HEADv2.2.0master
* release/v2.2.0: Limit BufWritePre running to plugin augroup Remove trailing whitespace
Diffstat (limited to 'autoload/write_mkpath.vim')
-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