summaryrefslogtreecommitdiffstats
path: root/runtime/doc/repeat.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-04 22:22:32 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-04 22:22:32 +0100
commit328da0dcb7be34b594725eef6dc98d3ea6516d69 (patch)
tree25c1736e833fccd324ea566f527fe42e798fc9a9 /runtime/doc/repeat.txt
parent6300317b15eb33409f652c603fb402417fe4eed7 (diff)
Update runtime files.
Diffstat (limited to 'runtime/doc/repeat.txt')
-rw-r--r--runtime/doc/repeat.txt34
1 files changed, 21 insertions, 13 deletions
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt
index 4a25f8d485..d5d78638ae 100644
--- a/runtime/doc/repeat.txt
+++ b/runtime/doc/repeat.txt
@@ -1,4 +1,4 @@
-*repeat.txt* For Vim version 7.4. Last change: 2016 Feb 26
+*repeat.txt* For Vim version 7.4. Last change: 2016 Mar 04
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -213,23 +213,31 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
about each searched file.
{not in Vi}
- *:loadp* *:loadplugin*
-:loadp[lugin] {name} Search for an optional plugin directory and source the
- plugin files found. It is similar to: >
- :runtime pack/*/opt/{name}/plugin/*.vim
-< However, `:loadplugin` uses 'packpath' instead of
- 'runtimepath'. And the directory found is added to
- 'runtimepath'.
-
- If you have a directory under 'packpath' that doesn't
- actually have a plugin file, just create an empty one.
- This will still add the directory to 'runtimepath'.
+ *:pa* *:packadd*
+:pa[ckadd][!] {name} Search for an optional plugin directory in 'packpath'
+ and source any plugin files found. The directory must
+ match:
+ pack/*/opt/{name} ~
+ The directory is added to 'runtimepath' if it wasn't
+ there yet.
Note that {name} is the directory name, not the name
of the .vim file. If the "{name}/plugin" directory
contains more than one file they are all sourced.
- Also see |load-plugin|.
+ If the filetype detection was not enabled yet (this
+ is usually done with a "syntax enable" or "filetype
+ on" command in your .vimrc file), this 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|.
+
+ Also see |pack-add|.
+
:scripte[ncoding] [encoding] *:scripte* *:scriptencoding* *E167*
Specify the character encoding used in the script.