vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

if_ver-cmd.vim (241B)


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