Hi,
With the latest runtime file update, the way to check the version of python2/3
was added to the doc.
This patch adds the way to check the version of all other interfaces.
(Lua/LuaJIT, MzScheme, Perl, Ruby and Tcl)
Regards,
Ken Takata
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
# HG changeset patch
# Parent 6c82a5b9ba5c35e433e99f9b5ce30c2dbee94e02
diff --git a/runtime/doc/if_lua.txt b/runtime/doc/if_lua.txt
--- a/runtime/doc/if_lua.txt
+++ b/runtime/doc/if_lua.txt
@@ -59,6 +59,12 @@ Example:
EOF
endfunction
<
+To see what version of Lua you have: >
+ :lua print(_VERSION)
+
+If you use LuaJIT you can also use this: >
+ :lua print(jit.version)
+<
*:luado*
:[range]luado {body} Execute Lua function "function (line, linenr) {body}
diff --git a/runtime/doc/if_mzsch.txt b/runtime/doc/if_mzsch.txt
--- a/runtime/doc/if_mzsch.txt
+++ b/runtime/doc/if_mzsch.txt
@@ -97,6 +97,9 @@ 2. Examples *mzscheme-examples*
:mzscheme (require (prefix vim- vimext)) ; for MzScheme < 4.x
:mzscheme (require (prefix-in vim- 'vimext)) ; MzScheme 4.x
:mzscheme (vim-set-buff-line 10 "This is line #10")
+
+To see what version of MzScheme you have: >
+ :mzscheme (display (version))
<
Inline script usage: >
function! <SID>SetFirstLine()
diff --git a/runtime/doc/if_perl.txt b/runtime/doc/if_perl.txt
--- a/runtime/doc/if_perl.txt
+++ b/runtime/doc/if_perl.txt
@@ -83,6 +83,9 @@ Example vim script: >
EOF
endfunction
<
+To see what version of Perl you have: >
+ :perl print $^V
+<
*:perldo* *:perld*
:[range]perld[o] {cmd} Execute Perl command {cmd} for each line in the
diff --git a/runtime/doc/if_ruby.txt b/runtime/doc/if_ruby.txt
--- a/runtime/doc/if_ruby.txt
+++ b/runtime/doc/if_ruby.txt
@@ -58,6 +58,9 @@ Example Vim script: >
EOF
endfunction
<
+To see what version of Ruby you have: >
+ :ruby print RUBY_VERSION
+<
*:rubydo* *:rubyd* *E265*
:[range]rubyd[o] {cmd} Evaluate Ruby command {cmd} for each line in the
diff --git a/runtime/doc/if_tcl.txt b/runtime/doc/if_tcl.txt
--- a/runtime/doc/if_tcl.txt
+++ b/runtime/doc/if_tcl.txt
@@ -54,6 +54,9 @@ Example: >
EOF
endfunction
<
+To see what version of Tcl you have: >
+ :tcl puts [info patchlevel]
+<
*:tcldo* *:tcld*
:[range]tcld[o] {cmd} Execute Tcl command {cmd} for each line in [range]