diff options
author | Pavel Platto <hinidu@gmail.com> | 2014-08-08 16:24:22 +0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-08-09 11:28:43 -0300 |
commit | 2838f2c3a62f3d6daeb071fee8f3260ac36bb42f (patch) | |
tree | e76e5f02c9baaecce742ec55c7ed36de0a05f4f3 | |
parent | 5e42b406a57fd6f4f6dc982745f854eb8e0cd92f (diff) | |
download | rneovim-2838f2c3a62f3d6daeb071fee8f3260ac36bb42f.tar.gz rneovim-2838f2c3a62f3d6daeb071fee8f3260ac36bb42f.tar.bz2 rneovim-2838f2c3a62f3d6daeb071fee8f3260ac36bb42f.zip |
documentation: Update tempfile and tempname()
-rw-r--r-- | runtime/doc/change.txt | 8 | ||||
-rw-r--r-- | runtime/doc/eval.txt | 3 |
2 files changed, 4 insertions, 7 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index de340ec8b5..66e69d4ffc 100644 --- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -566,11 +566,9 @@ attack or other people reading your file). When Vim exits the directory and all files in it are deleted. When Vim has the setuid bit set this may cause problems, the temp file is owned by the setuid user but the filter command probably runs as the original user. -On MS-DOS and OS/2 the first of these directories that works is used: $TMP, -$TEMP, c:\TMP, c:\TEMP. -For Unix the list of directories is: $TMPDIR, /tmp, current-dir, $HOME. -For MS-Windows the GetTempFileName() system function is used. -For other systems the tmpnam() library function is used. +Directory for temporary files is created in the first suitable directory of: +For Unix: $TMPDIR, /tmp, current-dir, $HOME. +For MS-Windows: $TMP, $TEMP, $USERPROFILE, current-dir. diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index cbd995da3d..cdad6a9d7e 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -6212,8 +6212,7 @@ taglist({expr}) *taglist()* tempname() *tempname()* *temp-file-name* The result is a String, which is the name of a file that - doesn't exist. It can be used for a temporary file. The name - is different for at least 26 consecutive calls. Example: > + doesn't exist. It can be used for a temporary file. Example: > :let tmpfile = tempname() :exe "redir > " . tmpfile < For Unix, the file will be in a private directory |tempfile|. |