docs: clarify :runtime START, OPT behavior #15342

By default, the :runtime command searches "pack/*/start" in 'packpath'
along with 'runtimepath'. Update the documentation to reflect this
behavior.
This commit is contained in:
Gregory Anders
2021-09-10 08:11:50 -06:00
committed by GitHub
parent 329047b3db
commit c58ee4ef7f

View File

@@ -201,10 +201,12 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
When [!] is included, all found files are sourced. When [!] is included, all found files are sourced.
Else only the first found file is sourced. Else only the first found file is sourced.
When [where] is omitted only 'runtimepath' is used. When [where] is omitted, first 'runtimepath' is
searched, then directories under "start" in 'packpath'
are searched.
Other values: Other values:
START search under "start" in 'packpath' START search only under "start" in 'packpath'
OPT search under "opt" in 'packpath' OPT search only under "opt" in 'packpath'
PACK search under "start" and "opt" in PACK search under "start" and "opt" in
'packpath' 'packpath'
ALL first use 'runtimepath', then search ALL first use 'runtimepath', then search