Move vim statusline to separate plugin

This commit is contained in:
Talia 2020-08-26 13:12:51 +02:00
parent 2cf318bbe4
commit 870afafd4f
2 changed files with 20 additions and 17 deletions

View file

@ -93,23 +93,6 @@ set listchars=eol:¶,tab:\│\ ,trail:·,nbsp:…,space:·
" Allows setting vim options in other files
set modeline
set laststatus=0
set statusline=%#StatusBar#
set statusline+=%#DiffDelete#
set statusline+=%{&autowriteall?'\ \ 🖴\ ':''}%<
set statusline+=%#DiffAdd#
set statusline+=%y%t%M%R\
set statusline+=%#DiffChange#
set statusline+=%{exists(\"b:blame\")?b:blame[min([getcurpos()[1],len(b:blame)])-1][\"short\"]:\"\"}
set statusline+=%#DiffChange#
set statusline+=%=
set statusline+=%#DiffAdd#
set statusline+=%{strlen(@\")}\
set statusline+=0x%B\
set statusline+=[%l/%L,\ %c%V]\
"set statusline+=%#DiffDelete#
set statusline+=%4.P
set cmdheight=1
set timeoutlen=1200

20
vim/plugin/statusline.vim Normal file
View file

@ -0,0 +1,20 @@
" exec 'hi TabLine' . s:fg_tabline_inactive_fg . s:bg_tabline_inactive_bg . s:ft_none
" exec 'hi TabLineFill' . s:fg_tabline_bg . s:bg_tabline_bg . s:ft_none
" exec 'hi TabLineSel' . s:fg_tabline_active_fg . s:bg_tabline_active_bg . s:ft_none
set laststatus=0
set statusline=%#StatusBar#
set statusline+=%#TabLineSel#
set statusline+=%{&autowriteall?'\ \ 🖴\ ':''}%<
set statusline+=%#TabLine#
set statusline+=%y%t%M%R\
set statusline+=%#TabLine#
set statusline+=%{exists(\"b:blame\")?b:blame[min([getcurpos()[1],len(b:blame)])-1][\"short\"]:\"\"}
set statusline+=%#TabLine#
set statusline+=%=
set statusline+=%#TabLine#
set statusline+=%{strlen(@\")}\
set statusline+=0x%B\
set statusline+=[%l/%L,\ %c%V]\
"set statusline+=%#DiffDelete#
set statusline+=%4.P