X-Git-Url: https://git.sthu.org/?p=vimconf.git;a=blobdiff_plain;f=init.vim;fp=init.vim;h=8392c284ebc30fc9ea2739352523d0318d321fdb;hp=ece77b04629a1597fa02c2c54b7575868b5cc8b8;hb=dddf2937cd26e4d0570bb4b609280d56451cf792;hpb=f4c1163fa6841613a9d3ab82154bfbac6862213f 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