From: Stefan Huber Date: Fri, 17 Dec 2021 23:35:41 +0000 (+0100) Subject: init: Add vi version to startify header X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=dddf2937cd26e4d0570bb4b609280d56451cf792;p=vimconf.git init: Add vi version to startify header --- diff --git a/init.vim b/init.vim index ece77b0..8392c28 100644 --- a/init.vim +++ b/init.vim @@ -232,7 +232,6 @@ let g:vimtex_fold_levelmarker = '➜' let g:termdebug_wide = 1 let termdebugger = $HOME . '/.vim/gdb.sh' - let g:startify_files_number = 5 let g:startify_session_persistence = 1 let g:startify_lists = [ @@ -241,19 +240,21 @@ let g:startify_lists = [ \ ] if has('nvim') + let verstr = matchstr(execute('version'), 'NVIM v\zs[^\n]*') let g:startify_custom_header = [ \ '', \ ' ╻ ╻ ╻ ┏┳┓', \ ' NEO ┃┏┛ ┃ ┃┃┃', - \ ' ┗┛ ╹ ╹ ╹', + \ ' ┗┛ ╹ ╹ ╹ ' . verstr, \ '', \ ] else + let verstr = matchstr(execute('version'), 'IMproved \zs[^\n ]*') let g:startify_custom_header = [ \ '', \ ' ╻ ╻ ╻ ┏┳┓', \ ' ┃┏┛ ┃ ┃┃┃', - \ ' ┗┛ ╹ ╹ ╹', + \ ' ┗┛ ╹ ╹ ╹ ' . verstr, \ '', \ ] endif