comparison runtime/doc/eval.txt @ 17085:620e9011b685 v8.1.1542

patch 8.1.1542: an OptionSet autocommand does not get enough info commit https://github.com/vim/vim/commit/d7c968794710f338d491072171df48f96612cf72 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 15 17:12:48 2019 +0200 patch 8.1.1542: an OptionSet autocommand does not get enough info Problem: An OptionSet autocommand does not get enough info. Solution: Add v:option_command, v:option_oldlocal and v:option_oldglobal. (Latrice Wilgus, closes #4118)
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Jun 2019 17:15:05 +0200
parents 00ffed9bbb65
children cc5d4b4bae83
comparison
equal deleted inserted replaced
17084:06dcb09b3b07 17085:620e9011b685
1941 *v:option_new* 1941 *v:option_new*
1942 v:option_new New value of the option. Valid while executing an |OptionSet| 1942 v:option_new New value of the option. Valid while executing an |OptionSet|
1943 autocommand. 1943 autocommand.
1944 *v:option_old* 1944 *v:option_old*
1945 v:option_old Old value of the option. Valid while executing an |OptionSet| 1945 v:option_old Old value of the option. Valid while executing an |OptionSet|
1946 autocommand. 1946 autocommand. Depending on the command used for setting and the
1947 kind of option this is either the local old value or the
1948 global old value.
1949 *v:option_oldlocal*
1950 v:option_oldlocal
1951 Old local value of the option. Valid while executing an
1952 |OptionSet| autocommand.
1953 *v:option_oldglobal*
1954 v:option_oldglobal
1955 Old global value of the option. Valid while executing an
1956 |OptionSet| autocommand.
1947 *v:option_type* 1957 *v:option_type*
1948 v:option_type Scope of the set command. Valid while executing an 1958 v:option_type Scope of the set command. Valid while executing an
1949 |OptionSet| autocommand. Can be either "global" or "local" 1959 |OptionSet| autocommand. Can be either "global" or "local"
1960 *v:option_command*
1961 v:option_command
1962 Command used to set the option. Valid while executing an
1963 |OptionSet| autocommand.
1964 value option was set via ~
1965 "setlocal" |:setlocal| or ":let l:xxx"
1966 "setglobal" |:setglobal| or ":let g:xxx"
1967 "set" |:set| or |:let|
1968 "modeline" |modeline|
1950 *v:operator* *operator-variable* 1969 *v:operator* *operator-variable*
1951 v:operator The last operator given in Normal mode. This is a single 1970 v:operator The last operator given in Normal mode. This is a single
1952 character except for commands starting with <g> or <z>, 1971 character except for commands starting with <g> or <z>,
1953 in which case it is two characters. Best used alongside 1972 in which case it is two characters. Best used alongside
1954 |v:prevcount| and |v:register|. Useful if you want to cancel 1973 |v:prevcount| and |v:register|. Useful if you want to cancel