diff options
author | Christian Brabandt <cb@256bit.org> | 2024-05-18 10:13:11 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-05-18 10:15:04 +0200 |
commit | 5cf5301e2847c5a1a380ae030c58825b5c6fe275 (patch) | |
tree | 1120801f9dbd9faf715671a927875ec8d83a339e /runtime/doc/builtin.txt | |
parent | 94043780196cc66d23eeec10e2c722c6552324e0 (diff) |
runtime(doc): clarify temporary file clean up
related: #14770
Co-authored-by: Enno <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r-- | runtime/doc/builtin.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 1d06e750a6..46819d6b9f 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1,4 +1,4 @@ -*builtin.txt* For Vim version 9.1. Last change: 2024 May 15 +*builtin.txt* For Vim version 9.1. Last change: 2024 May 18 VIM REFERENCE MANUAL by Bram Moolenaar @@ -10243,7 +10243,9 @@ tempname() *tempname()* *temp-file-name* is different for at least 26 consecutive calls. Example: > :let tmpfile = tempname() :exe "redir > " .. tmpfile -< For Unix, the file will be in a private directory |tempfile|. +< For Unix, the file will be in a private directory |tempfile| + that is recursively deleted when Vim exits, on other systems + temporary files are not cleaned up automatically on exit. For MS-Windows forward slashes are used when the 'shellslash' option is set, or when 'shellcmdflag' starts with '-' and 'shell' does not contain powershell or pwsh. |