diff options
-rw-r--r-- | autoload/write_mkpath.vim | 4 |
1 files changed, 4 insertions, 0 deletions
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 |