view ci/if_ver-cmd.vim @ 26956:86f8718c643d v8.2.4007

patch 8.2.4007: session does not restore help buffer properly Commit: https://github.com/vim/vim/commit/8e7d9db32b53ca2b1cb7570d2042860bcd1e943f Author: matveyt <matthewtarasov@gmail.com> Date: Wed Jan 5 14:01:30 2022 +0000 patch 8.2.4007: session does not restore help buffer properly Problem: Session does not restore help buffer properly when "options' is missing from 'sessionoptions'. Solution: Use a ":help" command to create the help window. (closes #9475, closes #9458, closes #9472)
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 Jan 2022 15:15: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>)