diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-12-06 22:35:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 22:35:05 -0500 |
commit | 18d81a672452d2e1f97fa054e65f9d02c8657e19 (patch) | |
tree | 86449df7b7ffdbf73678acc06897dab080e2d325 /runtime | |
parent | 67d3c98dac6a828117f076dcc1a8cc4123024a67 (diff) | |
parent | 419ebd8ec6015174a8b02776f9e86172af7523f2 (diff) | |
download | rneovim-18d81a672452d2e1f97fa054e65f9d02c8657e19.tar.gz rneovim-18d81a672452d2e1f97fa054e65f9d02c8657e19.tar.bz2 rneovim-18d81a672452d2e1f97fa054e65f9d02c8657e19.zip |
Merge pull request #16107 from zeertzjq/vim-8.1.1542
vim-patch:8.1.1542,8.2.3549: an OptionSet autocommand does not get enough info
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 4d4e011c08..44cfffd85c 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2042,10 +2042,29 @@ v:option_new New value of the option. Valid while executing an |OptionSet| autocommand. *v:option_old* v:option_old Old value of the option. Valid while executing an |OptionSet| - autocommand. + autocommand. Depending on the command used for setting and the + kind of option this is either the local old value or the + global old value. + *v:option_oldlocal* +v:option_oldlocal + Old local value of the option. Valid while executing an + |OptionSet| autocommand. + *v:option_oldglobal* +v:option_oldglobal + Old global value of the option. Valid while executing an + |OptionSet| autocommand. *v:option_type* v:option_type Scope of the set command. Valid while executing an |OptionSet| autocommand. Can be either "global" or "local" + *v:option_command* +v:option_command + Command used to set the option. Valid while executing an + |OptionSet| autocommand. + value option was set via ~ + "setlocal" |:setlocal| or ":let l:xxx" + "setglobal" |:setglobal| or ":let g:xxx" + "set" |:set| or |:let| + "modeline" |modeline| *v:operator* *operator-variable* v:operator The last operator given in Normal mode. This is a single character except for commands starting with <g> or <z>, |