view ci/if_ver-cmd.vim @ 31886:b741e5243e58 v9.0.1275

patch 9.0.1275: the code for setting options is too complicated Commit: https://github.com/vim/vim/commit/78012f55faf7444e554c0a97a589d99fa215bea9 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Thu Feb 2 16:34:11 2023 +0000 patch 9.0.1275: the code for setting options is too complicated Problem: The code for setting options is too complicated. Solution: Refactor the do_set() function. (Yegappan Lakshmanan, Lewis Russell, closes #11932)
author Bram Moolenaar <Bram@vim.org>
date Thu, 02 Feb 2023 17:45:05 +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>)