From dddf2937cd26e4d0570bb4b609280d56451cf792 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sat, 18 Dec 2021 00:35:41 +0100 Subject: [PATCH] init: Add vi version to startify header --- init.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.5