Move vim statusline to separate plugin
This commit is contained in:
parent
2cf318bbe4
commit
870afafd4f
2 changed files with 20 additions and 17 deletions
|
@ -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
20
vim/plugin/statusline.vim
Normal 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
|
Loading…
Reference in a new issue