aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-08-02 06:56:33 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-08-02 16:20:22 +0200
commit0d852bdc69b0293695c391e316c65183b88b83ef (patch)
treeddab75a90fd0c2667c1dd2658056f22c8d829316 /runtime/doc
parentbd23fefb391816648ebd701096bf9973f6256750 (diff)
downloadrneovim-0d852bdc69b0293695c391e316c65183b88b83ef.tar.gz
rneovim-0d852bdc69b0293695c391e316c65183b88b83ef.tar.bz2
rneovim-0d852bdc69b0293695c391e316c65183b88b83ef.zip
vim-patch:6c1e1570b134
Update runtime files https://github.com/vim/vim/commit/6c1e1570b1346de0d438fbb991bddab38c228290
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/autocmd.txt31
-rw-r--r--runtime/doc/index.txt1
-rw-r--r--runtime/doc/repeat.txt13
-rw-r--r--runtime/doc/syntax.txt2
4 files changed, 38 insertions, 9 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt
index 6343f6ef3d..ba89c207c2 100644
--- a/runtime/doc/autocmd.txt
+++ b/runtime/doc/autocmd.txt
@@ -877,12 +877,33 @@ MenuPopup Just before showing the popup menu (under the
*OptionSet*
OptionSet After setting an option (except during
|startup|). The |autocmd-pattern| is matched
- against the long option name.
- |v:option_old| indicates the old option value,
- |v:option_new| indicates the new value,
+ against the long option name. |<amatch>|
+ indicates what option has been set.
+
|v:option_type| indicates whether it's global
- or local scoped and |<amatch>| indicates which
- option was set.
+ or local scoped.
+ |v:option_command| indicates what type of
+ set/let command was used (follow the tag to
+ see the table).
+ |v:option_new| indicates the newly set value.
+ |v:option_oldlocal| has the old local value.
+ |v:option_oldglobal| has the old global value.
+ |v:option_old| indicates the old option value.
+
+ |v:option_oldlocal| is only set when |:set|
+ or |:setlocal| or a |modeline| was used to set
+ the option. Similarly |v:option_oldglobal| is
+ only set when |:set| or |:setglobal| was used.
+
+ Note that when setting a |global-local| string
+ option with |:set|, then |v:option_old| is the
+ old global value. However, for all other kinds
+ of options (local string options, global-local
+ number options, ...) it is the old local
+ value.
+
+ OptionSet is not triggered on startup and for
+ the 'key' option for obvious reasons.
Usage example: Check for the existence of the
directory in the 'backupdir' and 'undodir'
diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt
index da48f7f84d..de05c65179 100644
--- a/runtime/doc/index.txt
+++ b/runtime/doc/index.txt
@@ -1195,6 +1195,7 @@ tag command action ~
|:compiler| :comp[iler] do settings for a specific compiler
|:continue| :con[tinue] go back to :while
|:confirm| :conf[irm] prompt user when confirmation required
+|:const| :cons[t] create a variable as a constant
|:copen| :cope[n] open quickfix window
|:cprevious| :cp[revious] go to previous error
|:cpfile| :cpf[ile] go to last error in previous file
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt
index f8d6b75ccb..425ef4e926 100644
--- a/runtime/doc/repeat.txt
+++ b/runtime/doc/repeat.txt
@@ -266,9 +266,16 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
after loading your .vimrc file. With this command it
can be done earlier.
- Packages will be loaded only once. After this command
- it won't happen again. When the optional ! is added
- this command will load packages even when done before.
+ Packages will be loaded only once. Using
+ `:packloadall` a second time will have no effect.
+ When the optional ! is added this command will load
+ packages even when done before.
+
+ Note that when using `:packloadall` in the |vimrc|
+ file, the 'runtimepath' option is updated, and later
+ all plugins in 'runtimepath' will be loaded, which
+ means they are loaded again. Plugins are expected to
+ handle that.
An error only causes sourcing the script where it
happens to be aborted, further plugins will be loaded.
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index b3edc4757d..8bcd60d558 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -3108,7 +3108,7 @@ in your vimrc, and :set fdm=syntax. I suggest doing the latter via a
modeline at the end of your LaTeX file: >
% vim: fdm=syntax
If your system becomes too slow, then you might wish to look into >
- https://vimhelp.appspot.com/vim_faq.txt.html#faq-29.7
+ https://vimhelp.org/vim_faq.txt.html#faq-29.7
<
*g:tex_nospell*
Tex: No Spell Checking Wanted~