vim-startify icon indicating copy to clipboard operation
vim-startify copied to clipboard

[Feature Request] Add support to show vim version

Open erikw opened this issue 4 years ago • 0 comments

When juggling between different installed versions or forks of vim, the default start screen is quite helpful in reminding on what version/type of vim is actually running. For example I have both vim and neovim installed. Hopefully the shell alias vi points to the one vim I think it does. In case I remember wrong, the start screen reminds me of what I'm actually running

See screenshots of default vim & neovim start screens here: vim neovim

It's possible to add the version manually by using e.g. startify_custom_header or startify_custom_footer as shown in #449 . However this is quite some effort to do. I think it would benefit many if there was some startify_show_version option that adds the current version as stylished in the first line of :version.

That is, for the versions shown in the screenshot above, setting a future let g:startify_show_version = 1 would include somewhere in the startup screen the string

  • for vim: Vim 8.2.2029
  • for Neovim: NVIM v0.5.1

These snippets shows how versions could be extracted: https://gist.github.com/erikw/bd4c552b11733cd1ba9440095edaa4e8

erikw avatar Oct 18 '21 14:10 erikw