|author||Tom Ryder <firstname.lastname@example.org>||2019-05-31 22:47:59 +1200|
|committer||Tom Ryder <email@example.com>||2019-05-31 23:03:10 +1200|
|parent||Suppress potentially confusing :file output (diff)|
Document Vim < 7.2 caveat
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/write_mkpath.txt b/doc/write_mkpath.txt
index 8ba3709..c4713f8 100644
@@ -18,6 +18,15 @@ REQUIREMENTS *write_mkpath-requirements*
This plugin only loads if 'compatible' is not set.
+In Vim 7.0 and 7.1, the path will be created relative to Vim's working
+directory at the time of the write operation, which might not be the same as
+the working directory when the buffer was first created, e.g. after a |:cd|
+change. This is worked around safely in Vim 7.2 and newer by calculating an
+absolute path for new buffers with nonexistent relative paths, but filename
+escaping bugs in earlier versions preclude the same fix in older versions.
Written and maintained by Tom Ryder <firstname.lastname@example.org>.