Last active
November 29, 2021 18:34
-
-
Save erikw/bd4c552b11733cd1ba9440095edaa4e8 to your computer and use it in GitHub Desktop.
vim-statify neovim/vim version in fortune
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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