view ci/if_ver-cmd.vim @ 32086:45142117e206 v9.0.1374

patch 9.0.1374: function for setting options not used consistently Commit: https://github.com/vim/vim/commit/c727b19e9f1df36e44321d933334c7b4961daa54 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Fri Mar 3 12:26:15 2023 +0000 patch 9.0.1374: function for setting options not used consistently Problem: Function for setting options not used consistently. Solution: Use a function for 'encoding' and terminal options. (Yegappan Lakshmanan, closes #12099)
author Bram Moolenaar <Bram@vim.org>
date Fri, 03 Mar 2023 13:30:03 +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>)