view ci/if_ver-cmd.vim @ 23853:a9ed31ab85c3 v8.2.2468

patch 8.2.2468: not easy to get the full command name from a shortened one Commit: https://github.com/vim/vim/commit/038e09ee7645731de0296d255aabb17603276443 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 6 12:38:51 2021 +0100 patch 8.2.2468: not easy to get the full command name from a shortened one Problem: Not easy to get the full command name from a shortened one. Solution: Add fullcommand(). (Martin Tournoij, closes https://github.com/vim/vim/issues/7777)
author Bram Moolenaar <Bram@vim.org>
date Sat, 06 Feb 2021 12:45:04 +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>)