Mercurial > vim
comparison runtime/doc/builtin.txt @ 35200:7f5de3ce54c8 default tip
runtime(doc): clarify temporary file clean up
Commit: https://github.com/vim/vim/commit/5cf5301e2847c5a1a380ae030c58825b5c6fe275
Author: Christian Brabandt <cb@256bit.org>
Date: Sat May 18 10:13:11 2024 +0200
runtime(doc): clarify temporary file clean up
related: https://github.com/vim/vim/issues/14770
Co-authored-by: Enno <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 18 May 2024 10:30:03 +0200 |
parents | 3a4fd6867abf |
children |
comparison
equal
deleted
inserted
replaced
35199:57f7c2b32500 | 35200:7f5de3ce54c8 |
---|---|
1 *builtin.txt* For Vim version 9.1. Last change: 2024 May 15 | 1 *builtin.txt* For Vim version 9.1. Last change: 2024 May 18 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
10241 The result is a String, which is the name of a file that | 10241 The result is a String, which is the name of a file that |
10242 doesn't exist. It can be used for a temporary file. The name | 10242 doesn't exist. It can be used for a temporary file. The name |
10243 is different for at least 26 consecutive calls. Example: > | 10243 is different for at least 26 consecutive calls. Example: > |
10244 :let tmpfile = tempname() | 10244 :let tmpfile = tempname() |
10245 :exe "redir > " .. tmpfile | 10245 :exe "redir > " .. tmpfile |
10246 < For Unix, the file will be in a private directory |tempfile|. | 10246 < For Unix, the file will be in a private directory |tempfile| |
10247 that is recursively deleted when Vim exits, on other systems | |
10248 temporary files are not cleaned up automatically on exit. | |
10247 For MS-Windows forward slashes are used when the 'shellslash' | 10249 For MS-Windows forward slashes are used when the 'shellslash' |
10248 option is set, or when 'shellcmdflag' starts with '-' and | 10250 option is set, or when 'shellcmdflag' starts with '-' and |
10249 'shell' does not contain powershell or pwsh. | 10251 'shell' does not contain powershell or pwsh. |
10250 | 10252 |
10251 | 10253 |