Lines Matching refs:local
72 Note that {cmd} cannot use local variables, since it is parsed
99 - Variables and functions are script-local by default.
224 Functions and variables are script-local by default ~
227 in a Vim9 script, the function is local to the script, as if "s:" was
231 def ThisFunction() # script-local
232 def s:ThisFunction() # script-local
237 function, this nested function is local to the code block it is defined in.
238 In a `:def` function it is not possible to define a script-local function. It
249 Since a script-local function reference can be used without "s:" the name must
264 Vim9 script script-local functions are defined once when the script is sourced
278 When loading a Vim9 script a second time all existing script-local functions
287 some point when loaded again. E.g. when a buffer local option is set: >
301 Variables can be local to a script, function or code block: >
363 `:lockvar` does not work on local variables. Use `:const` and `:final`
366 The `exists()` and `exists_compiled()` functions do not work on local variables
800 These commands are too easily confused with local variable names.
1073 script-local functions cannot be deleted or redefined
1084 If the script the function is defined in is Vim9 script, then script-local
1087 legacy script, then script-local variables must be accessed with the "s:"
1099 can prepend "s:" to find script-local functions.
1306 For script-local variables in Vim9 script the type is checked, also when the
1351 the script is local, unless exported. Those exported items, and only those
1369 The variables at the file level are very much like the script-local "s:"
1447 become script-local, even when the "s:" prefix is not given.
1497 var localVar = 'local'
1508 If an `import` statement is used in legacy Vim script, the script-local "s:"
1571 up the local function scope and executing lines. There are many details that
1765 are global. It is possible to make them script-local, but then they are not
1767 exports selected items and keeps the rest local.
1772 - Instead of making everything global by default, everything is script-local,
1782 - The Vim-specific use of "s:" to make things script-local can be dropped.
1786 - All the exported items become available as script-local items. This makes