if_ver-cmd.vim 241 B

12345678910111213
  1. " Provide 'PrintVer' command to print the interface versions.
  2. func s:print_ver(lang, ...)
  3. if has(a:lang)
  4. exec a:lang join(a:000)
  5. else
  6. echo 'N/A'
  7. endif
  8. echo ''
  9. endfunc
  10. command -nargs=+ PrintVer call <SID>print_ver(<f-args>)