mirror of
https://github.com/vim/vim
synced 2025-03-14 13:57:52 +01:00
Problem: Detecting Lua version is not reliable. Solution: Add "vim.lua_version". (Ozaki Kiichi, closes #8080)
25 lines
503 B
VimL
25 lines
503 B
VimL
" Print all interface versions for Ubuntu. Part 1.
|
|
|
|
if 1
|
|
execute 'source' expand('<sfile>:h') .. '/if_ver-cmd.vim'
|
|
|
|
echo "*** Interface versions ***\n"
|
|
|
|
echo 'Lua:'
|
|
PrintVer lua print(vim.lua_version, jit and "(LuaJIT)" or "")
|
|
|
|
echo 'MzScheme:'
|
|
PrintVer mzscheme (display (version))
|
|
|
|
echo 'Perl:'
|
|
PrintVer perl print $^V
|
|
|
|
echo 'Ruby:'
|
|
PrintVer ruby print RUBY_VERSION
|
|
|
|
echo 'Tcl:'
|
|
PrintVer tcl puts [info patchlevel]
|
|
|
|
echo 'Python 2:'
|
|
PrintVer python print sys.version
|
|
endif
|