Skip to content

Instantly share code, notes, and snippets.

@erikw
Last active November 29, 2021 18:34
Show Gist options
  • Save erikw/bd4c552b11733cd1ba9440095edaa4e8 to your computer and use it in GitHub Desktop.
Save erikw/bd4c552b11733cd1ba9440095edaa4e8 to your computer and use it in GitHub Desktop.
vim-statify neovim/vim version in fortune
let s:vim_version = matchstr(execute('version'), 'Vi IMproved \zs\d[^ ]*')
let s:ascii = [
\ ' ##############..... ##############',
\ ' ##############......##############',
\ ' ##########..........##########',
\ ' ##########........##########',
\ ' ##########.......##########',
\ ' ##########.....##########..',
\ ' ##########....##########.....',
\ ' ..##########..##########.........',
\ ' ....##########.#########.............',
\ ' ..##################.............',
\ ' ################.............',
\ ' ##############.............',
\ ' ############.............',
\ ' ##########.............',
\ ' ########.............',
\ ' ###### .........',
\ ' .....',
\ ' .',
\ ' Vim ' . s:vim_version
\]
let g:startify_custom_header = s:ascii
let s:nvim_version = matchstr(execute('version'), 'NVIM v\zs[^\n]*')
let s:ascii = [
\ ' ##############..... ##############',
\ ' ##############......##############',
\ ' ##########..........##########',
\ ' ##########........##########',
\ ' ##########.......##########',
\ ' ##########.....##########..',
\ ' ##########....##########.....',
\ ' ..##########..##########.........',
\ ' ....##########.#########.............',
\ ' ..##################.............',
\ ' ################.............',
\ ' ##############.............',
\ ' ############.............',
\ ' ##########.............',
\ ' ########.............',
\ ' ###### .........',
\ ' .....',
\ ' .',
\ ' NeoVim v' . s:nvim_version
\]
let g:startify_custom_header = s:ascii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment