diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-01 12:17:00 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-01 12:17:00 +0000 |
commit | b79ee0c299d786627784f7304ba84b80e78ece26 (patch) | |
tree | 8c7d0b09c3592f3bb221fabf4d0ff5ae86abf216 /runtime | |
parent | 654b729c4c9951f2a46c161d1e9fefdc223fc94e (diff) |
patch 8.2.3965: Vim9: no easy way to check if Vim9 script is supportedv8.2.3965
Problem: Vim9: no easy way to check if Vim9 script is supported.
Solution: Add has('vim9script').
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/vim9.txt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt index 1dde731ff5..e79e06e5bb 100644 --- a/runtime/doc/vim9.txt +++ b/runtime/doc/vim9.txt @@ -391,8 +391,8 @@ later. Example: > endif enddef -If you would do it like this you get an error at compile time that -"PluginFunc" does not exist, even when "g:loaded_plugin" does not exist: > +If you do it like this, you get an error at compile time that "PluginFunc" +does not exist, even when "g:loaded_plugin" does not exist: > def CallPluginFunc() if exists('g:loaded_plugin') PluginFunc() # Error - function not found @@ -1411,9 +1411,6 @@ This can only work in two ways: 2. The "if" statement evaluates to true, the commands up to `endif` are executed and `finish` bails out before reaching `vim9script`. -TODO: The "vim9script" feature does not exist yet, it will only be added once -the Vim9 script syntax has been fully implemented. - Export ~ *:export* *:exp* |