mhinz / vim-startify

:link: The fancy start screen for Vim.
MIT License
5.3k stars 186 forks source link

[Feature Request] Add support to show vim version #511

Open erikw opened 2 years ago

erikw commented 2 years ago

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

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