view ci/if_ver-cmd.vim @ 23594:d3e064f54890 v8.2.2339

patch 8.2.2339: cannot get the type of a value as a string Commit: https://github.com/vim/vim/commit/a47e05f04a5a5c0369c949157c24d09cbe64ad6a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 12 21:49:00 2021 +0100 patch 8.2.2339: cannot get the type of a value as a string Problem: Cannot get the type of a value as a string. Solution: Add typename().
author Bram Moolenaar <Bram@vim.org>
date Tue, 12 Jan 2021 22:00:06 +0100
parents 27ff44268da5
children
line wrap: on
line source

" Provide 'PrintVer' command to print the interface versions.

func s:print_ver(lang, ...)
  if has(a:lang)
    exec a:lang join(a:000)
  else
    echo 'N/A'
  endif
  echo ''
endfunc

command -nargs=+ PrintVer call <SID>print_ver(<f-args>)