From eb87e294faec5c66dfac3bbe8bfa1fa35c17bdc8 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 1 Jun 2019 18:26:17 +1200 Subject: Use :file to recognise created path at end of hook --- autoload/write_mkpath.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/write_mkpath.vim b/autoload/write_mkpath.vim index 8a3ac9d..cba56e9 100644 --- a/autoload/write_mkpath.vim +++ b/autoload/write_mkpath.vim @@ -26,4 +26,8 @@ function! write_mkpath#(path) abort call mkdir(dir, 'p') endif + " Prod Vim into realising the buffer's directory exists now, so that a + " subsequent change of working directory doesn't break it + silent keepalt file % + endfunction -- cgit v1.2.3 From 3537a49c4c9a0d3ac86e9287fd34abc637763f9f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 1 Jun 2019 18:52:40 +1200 Subject: Add Vim v7.3 dependency --- doc/write_mkpath.txt | 2 +- plugin/write_mkpath.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/write_mkpath.txt b/doc/write_mkpath.txt index 76823d9..0ddec4a 100644 --- a/doc/write_mkpath.txt +++ b/doc/write_mkpath.txt @@ -1,4 +1,4 @@ -*write_mkpath.txt* For Vim version 7.0 Last change: 2019 Jun 01 +*write_mkpath.txt* For Vim version 7.3 Last change: 2019 Jun 01 DESCRIPTION *write_mkpath* diff --git a/plugin/write_mkpath.vim b/plugin/write_mkpath.vim index ea53191..64bb6c2 100644 --- a/plugin/write_mkpath.vim +++ b/plugin/write_mkpath.vim @@ -5,7 +5,7 @@ " Author: Tom Ryder " License: Same as Vim itself " -if exists('loaded_write_mkpath') || &compatible || v:version < 700 +if exists('loaded_write_mkpath') || &compatible || v:version < 703 finish endif -- cgit v1.2.3 From 2f53d25aaa6f18772f9f8377dd38575042d66c74 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 1 Jun 2019 18:53:12 +1200 Subject: Bump VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 227cea2..38f77a6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.0 +2.0.1 -- cgit v1.2.3