From 16df936fdb332f2654f1bb501c4de9e27c5be076 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 23 Jun 2019 16:23:16 +1200 Subject: Limit BufWritePre running to plugin augroup --- autoload/write_mkpath.vim | 4 ++-- 1 file 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 -- cgit v1.2.3