summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-01 12:17:00 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-01 12:17:00 +0000
commitb79ee0c299d786627784f7304ba84b80e78ece26 (patch)
tree8c7d0b09c3592f3bb221fabf4d0ff5ae86abf216 /runtime
parent654b729c4c9951f2a46c161d1e9fefdc223fc94e (diff)
downloadvim-git-b79ee0c299d786627784f7304ba84b80e78ece26.tar.gz
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.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt
index 1dde731ff..e79e06e5b 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*