darkrc/vim/plugin/statusline.vim
DarkWiiPlayer 4293f61371 Semi-re-pimp vim autosave statusline icon with unicode
The new unicode icon should be less annoying than the old floppy disk,
but still be at least somewhat simple to understand as "autosave turned
on"
2020-10-05 12:45:37 +02:00

20 lines
766 B
VimL

" 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=2
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