aboutsummaryrefslogtreecommitdiff
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
parent9f12c7a85e4a2f1cd6f6ba39c5a55a45fe4ea793 (diff)
parent5b623ac81f602dcf95332c81a4ecef7876d3ea70 (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
-rw-r--r--VERSION2
-rw-r--r--autoload/write_mkpath.vim4
-rw-r--r--doc/write_mkpath.txt2
-rw-r--r--plugin/write_mkpath.vim2
4 files changed, 5 insertions, 5 deletions
diff --git a/VERSION b/VERSION
index 3e3c2f1..ccbccc3 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.1.1
+2.2.0
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
diff --git a/doc/write_mkpath.txt b/doc/write_mkpath.txt
index b300855..6d909eb 100644
--- a/doc/write_mkpath.txt
+++ b/doc/write_mkpath.txt
@@ -1,4 +1,4 @@
-*write_mkpath.txt* For Vim version 7.2 Last change: 2019 Jun 4
+*write_mkpath.txt* For Vim version 7.2 Last change: 2019 Jun 23
DESCRIPTION *write_mkpath*
diff --git a/plugin/write_mkpath.vim b/plugin/write_mkpath.vim
index eb35504..b0a3542 100644
--- a/plugin/write_mkpath.vim
+++ b/plugin/write_mkpath.vim
@@ -4,7 +4,7 @@
"
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
-"
+"
if exists('loaded_write_mkpath') || &compatible || v:version < 702
finish
endif