summaryrefslogtreecommitdiffstats
path: root/runtime/doc/repeat.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-04 22:12:23 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-04 22:12:23 +0100
commitf3654827368e6204608036353a0360e9e7c21e02 (patch)
treebc8c628031ddb98eb7ad2340198d29359a969061 /runtime/doc/repeat.txt
parent014069a7ac51557e531eb3c8b94e36f2193f6c21 (diff)
patch 7.4.1486v7.4.1486
Problem: ":loadplugin" is not optimal, some people find it confusing. Solution: Only use ":packadd" with an optional "!".
Diffstat (limited to 'runtime/doc/repeat.txt')
-rw-r--r--runtime/doc/repeat.txt14
1 files changed, 10 insertions, 4 deletions
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt
index a6ebf71185..4a25f8d485 100644
--- a/runtime/doc/repeat.txt
+++ b/runtime/doc/repeat.txt
@@ -433,6 +433,12 @@ You would now have these files under ~/.vim:
pack/my/ever/always/syntax/always.vim
pack/my/opt/mydebug/plugin/debugger.vim
+If you don't have a package but a single plugin, you need to create the extra
+directory level:
+ % mkdir -p ~/.vim/pack/my/ever/always
+ % cd ~/.vim/pack/my/ever/always
+ % unzip /tmp/myplugin.zip
+
When Vim starts up it scans all directories in 'packpath' for plugins under the
"ever" directory and loads them. When found that directory is added to
'runtimepath'.
@@ -443,11 +449,11 @@ In the example Vim will find "my/ever/always/plugin/always.vim" and adds
If the "always" plugin kicks in and sets the 'filetype' to "always", Vim will
find the syntax/always.vim file, because its directory is in 'runtimepath'.
-Vim will also load ftdetect files, like with |:loadplugin|.
+Vim will also load ftdetect files, like with |:packadd|.
- *load-plugin*
-To load an optional plugin from a pack use the `:loadplugin` command: >
- :loadplugin mydebug
+ *pack-add*
+To load an optional plugin from a pack use the `:packadd` command: >
+ :packadd mydebug
This could be done inside always.vim, if some conditions are met.
Or you could add this command to your |.vimrc|.