Lines Matching refs:script

5 		       Write plugins using Vim9 script
8 The Vim9 script language is used for writing plugins, especially larger ones
15 |46.?| Using a Vim9 script from legacy script
22 *46.1* Introduction *vim9-script-intro*
24 Vim9 script was designed to make it easier to write large Vim scripts. It
25 looks more like other script languages, especially Typescript. Also,
27 makes Vim9 script a lot faster, up to a 100 times.
29 The basic idea is that a script file has items that are private, only used
30 inside the script file, and items that are exported, used outside of the
31 script file. The exported items can then be used by scripts that import them.
34 Let's start with an example, a script that exports one function and has one
37 vim9script " This indicates a Vim9 script file.
56 it Vim will assume legacy script syntax.
60 `def GetPart(...` does not start with `export`, this is a script-local
61 function, it can only be used inside this script file.
74 In Vim9 script variables are declared once with a `:let` or `:const` command.
113 Legacy Vim script does have type checking, but this happens at runtime, when
125 And you'll see zero. Why? Because in legacy Vim script "+=" will convert the
143 Vim9 script is strict, it uses the "+" operator only for numbers and floats.
164 *46.?* Using a Vim9 script from legacy script *source-vim9-script*
166 In some cases you have a legacy Vim script where you want to use items from a
167 Vim9 script. For example in your .vimrc you want to initialize a plugin. The
173 This finds the exported function "Init" in the Vim9 script file and makes it
174 available as script-local item "NiceInit". `:import` always uses the script
179 can cause unexpected errors), this also means the script is sourced only once,
182 In some cases, e.g. for testing, you may just want to source the Vim9 script.
183 That is OK, but then only global items will be available. The Vim9 script