aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAetf <7437103@gmail.com>2022-02-20 17:58:31 -0500
committerGitHub <noreply@github.com>2022-02-20 15:58:31 -0700
commitaeb390e28f6346009c5a67a9ea79161bc1e62dda (patch)
tree1dc2f97bdd9bee87893b640c0eb0f498669672b5
parent9fa46d3fd4db2f98b3cabd894144b452433896b1 (diff)
downloadrneovim-aeb390e28f6346009c5a67a9ea79161bc1e62dda.tar.gz
rneovim-aeb390e28f6346009c5a67a9ea79161bc1e62dda.tar.bz2
rneovim-aeb390e28f6346009c5a67a9ea79161bc1e62dda.zip
docs: clarify ftdetect scripts loading during packadd (#17465)
The old description doesn't match the current behavior anymore.
-rw-r--r--runtime/doc/repeat.txt17
1 files changed, 9 insertions, 8 deletions
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt
index a022049766..05529dc90a 100644
--- a/runtime/doc/repeat.txt
+++ b/runtime/doc/repeat.txt
@@ -253,21 +253,22 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
below "plugin", just like with plugins in
'runtimepath'.
- If the filetype detection was not enabled yet (this
+ If the filetype detection was already enabled (this
is usually done with a "syntax enable" or "filetype
- on" command in your .vimrc file), this will also look
+ on" command in your |init.vim|, or automatically during
+ |initialization|), and the package was found in
+ "pack/*/opt/{name}", this command will also look
for "{name}/ftdetect/*.vim" files.
When the optional ! is added no plugin files or
ftdetect scripts are loaded, only the matching
directories are added to 'runtimepath'. This is
- useful in your .vimrc. The plugins will then be
- loaded during initialization, see |load-plugins| (note
+ useful in your |init.vim|. The plugins will then be
+ loaded during |initialization|, see |load-plugins| (note
that the loading order will be reversed, because each
- directory is inserted before others).
- Note that for ftdetect scripts to be loaded
- you will need to write `filetype plugin indent on`
- AFTER all `packadd!` commands.
+ directory is inserted before others). In this case, the
+ ftdetect scripts will be loaded during |initialization|,
+ before the |load-plugins| step.
Also see |pack-add|.