view ci/if_ver-cmd.vim @ 30403:42d592459521 v9.0.0537

patch 9.0.0537: the do_set() function is much too long Commit: https://github.com/vim/vim/commit/4740394f230dda09d6e9337465305741d8ee4fa3 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 21 21:12:53 2022 +0100 patch 9.0.0537: the do_set() function is much too long Problem: The do_set() function is much too long. Solution: Move setting of a string option to a separate function.
author Bram Moolenaar <Bram@vim.org>
date Wed, 21 Sep 2022 22:15:02 +0200
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>)