Lines Matching refs:value
134 var name = value # comment
135 var name = value# error!
180 var d = {item: 'value', func: DictFunc}
185 echo self.value
188 var d = {func: Legacy, value: 'text'}
205 When a function argument is optional (it has a default value) passing `v:none`
206 as the argument results in using the default value. This is useful when you
207 want to specify a value for an argument that comes after an argument that
208 should use its default value. Example: >
212 MyFunc(v:none, 'LAST') # first argument uses default value 'one'
218 the key and the value, to ignore the key: >
376 g:global = 'value'
414 Since `&opt = value` is now assigning a value to option "opt", ":&" cannot be
434 can't be assigned another value a constant. JavaScript is an example. Others
435 also make the value immutable, thus when a constant uses a list, the list
438 `:const` is used for making both the variable and the value a constant. Use
446 `:final` is used for making only the variable a constant, the value can be
455 The constant only applies to the value itself, not what it refers to. >
567 return 'value'
583 key: value
768 let dict = {'key': value}
772 let dict = #{key: value}
779 var dict = {key: value}
783 var dict = {'key with space': value}
784 var dict = {"key\twith\ttabs": value}
785 var dict = {'': value} # empty key
789 var dict = {["key" .. nr]: value}
849 value legacy Vim script Vim9 script ~
857 For the "??" operator and when using "!" then there is no error, every value
888 result is a boolean. "!!" can be used to turn any value into boolean: >
944 g:name = value # assignment
1023 The 'edcompatible' option value is not used.
1024 The 'gdefault' option value is not used.
1057 {name} = {value}
1058 {name}: {type} = {value}
1062 When the caller omits an argument the {value} is used.
1147 to the same instance, which in the end will have the value 4. This is
1186 These types can be used in declarations, but no simple value will actually
1195 checking for arguments or return value
1197 value
1202 value
1207 a value
1210 not return a value
1212 arguments, does not return a value
1220 If the return type is "void" the function does not return a value.
1255 value can be changed at any time, possibly changing the type. Therefore, in
1275 value is not actually changed. If you need to change the type, e.g. to change
1283 declaring a variable and giving it a value: >
1319 before, if the value used matches the expected type. There will sometimes be
1322 - Using a string value when setting a number option.
1378 Vim default value, like with: >
1381 The original value of 'cpoptions' is restored at the end of the script, while
1383 original value to get the same effect. The order of flags may change.
1638 mix of static typing (a variable always has a known value type) and dynamic
1661 cannot assign the value to a boolean. That is inconsistent and can be
1668 since a type cast can remove the immutable nature. Vim locks the value,
1680 languages only make the variable immutable, others also make the value
1687 :var name # mutable variable and value
1688 :final name # immutable variable, mutable value
1689 :const name # immutable variable and value
1719 from the value. This means that after `var` we don't know if a type or a name
1748 If you have any type of value and want to use it as a boolean, use the `!!`
1758 Here you can explicitly express your intention to use the value as-is and not