diff options
Diffstat (limited to 'doc/write_mkpath.txt')
-rw-r--r-- | doc/write_mkpath.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/write_mkpath.txt b/doc/write_mkpath.txt index 8ba3709..db490f7 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 May 28 +*write_mkpath.txt* For Vim version 7.0 Last change: 2019 May 31 DESCRIPTION *write_mkpath* @@ -18,6 +18,15 @@ REQUIREMENTS *write_mkpath-requirements* This plugin only loads if 'compatible' is not set. +CAVEATS *write_mkpath-caveats* + +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. + AUTHOR *write_mkpath-author* Written and maintained by Tom Ryder <tom@sanctum.geek.nz>. |