]> git.sthu.org Git - vimconf.git/commitdiff
init: Add vi version to startify header
authorStefan Huber <shuber@sthu.org>
Fri, 17 Dec 2021 23:35:41 +0000 (00:35 +0100)
committerStefan Huber <shuber@sthu.org>
Fri, 17 Dec 2021 23:35:41 +0000 (00:35 +0100)
init.vim

index ece77b04629a1597fa02c2c54b7575868b5cc8b8..8392c284ebc30fc9ea2739352523d0318d321fdb 100644 (file)
--- 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