runtime(doc): Rename NoDefaultCurrentDirectoryInExePath tag

- Add leading "$" to match other environment variable tags.
- Clarify :help $NoDefaultCurrentDirectoryInExePath.

closes: #18895

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Doug Kearns
2025-12-11 20:33:51 +01:00
committed by Christian Brabandt
parent 50325c3d59
commit bfb9f5c40e
3 changed files with 9 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
*builtin.txt* For Vim version 9.1. Last change: 2025 Dec 06
*builtin.txt* For Vim version 9.1. Last change: 2025 Dec 10
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2715,13 +2715,14 @@ executable({expr}) *executable()*
On MS-Windows an executable in the same directory as the Vim
executable is always found. Since this directory is added to
$PATH it should also work to execute it |win32-PATH|.
*NoDefaultCurrentDirectoryInExePath*
*$NoDefaultCurrentDirectoryInExePath*
On MS-Windows when using cmd.exe as 'shell' an executable in
Vim's current working directory is also normally found, which
can be disabled by setting the
`$NoDefaultCurrentDirectoryInExePath` environment variable.
This is always done when executing external commands using
e.g. |:!|, |:make|, |system()| for security reasons.
This variable is always set by Vim when executing external
commands (e.g., via |:!|, |:make|, or |system()|) for security
reasons.
The result is a Number:
1 exists

View File

@@ -9,6 +9,7 @@ $HOME-windows options.txt /*$HOME-windows*
$MYGVIMRC gui.txt /*$MYGVIMRC*
$MYVIMDIR starting.txt /*$MYVIMDIR*
$MYVIMRC starting.txt /*$MYVIMRC*
$NoDefaultCurrentDirectoryInExePath builtin.txt /*$NoDefaultCurrentDirectoryInExePath*
$VIM starting.txt /*$VIM*
$VIM-use version5.txt /*$VIM-use*
$VIMRUNTIME starting.txt /*$VIMRUNTIME*
@@ -5777,7 +5778,6 @@ Neovim intro.txt /*Neovim*
NetBSD-backspace options.txt /*NetBSD-backspace*
NetBeans netbeans.txt /*NetBeans*
NetUserPass() pi_netrw.txt /*NetUserPass()*
NoDefaultCurrentDirectoryInExePath builtin.txt /*NoDefaultCurrentDirectoryInExePath*
None eval.txt /*None*
Normal intro.txt /*Normal*
Normal-mode intro.txt /*Normal-mode*

View File

@@ -1,4 +1,4 @@
*version9.txt* For Vim version 9.1. Last change: 2025 Dec 09
*version9.txt* For Vim version 9.1. Last change: 2025 Dec 10
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -41758,8 +41758,8 @@ Platform specific ~
- MS-Windows: The title bar follows the |hl-TitleBar| and |hl-TitleBarNC|
highlighting group |gui-w32-title-bar|.
- MS-Windows: Vim no longer searches the current directory for
executables when running external commands; use a relative or absolute path
if you want the previous behavior |NoDefaultCurrentDirectoryInExePath|.
executables when running external commands; prefix a relative or absolute
path if you want the old behavior |$NoDefaultCurrentDirectoryInExePath|.
- macOS: increase default scheduler priority to TASK_DEFAULT_APPLICATION.
Others: ~