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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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.
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:
START search under "start" in 'packpath'
OPT search under "opt" in 'packpath'
START search only under "start" in 'packpath'
OPT search only under "opt" in 'packpath'
PACK search under "start" and "opt" in
'packpath'
ALL first use 'runtimepath', then search