File: if_ver-cmd.vim

package info (click to toggle)
vim 2%3A9.2.0119-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 96,200 kB
  • sloc: ansic: 434,134; cpp: 6,445; makefile: 4,637; sh: 2,569; java: 2,488; xml: 2,099; python: 1,716; perl: 1,419; awk: 730; lisp: 501; cs: 458; objc: 369; sed: 35; csh: 9; haskell: 1
file content (12 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
" 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>)