Sanchayan Maity
c1f6813a9d
Hunk summary in status line has not been useful. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
43 lines
1.1 KiB
VimL
43 lines
1.1 KiB
VimL
hi User1 guifg=DarkRed guibg=Black
|
|
hi User2 guifg=White guibg=Black
|
|
hi User3 guifg=Cyan guibg=Black
|
|
hi User4 guifg=Orange guibg=Black
|
|
hi User5 guifg=Red guibg=Black
|
|
hi User6 guifg=Gray guibg=Black
|
|
hi User7 guifg=Gray guibg=Black
|
|
hi User8 guifg=DarkYellow guibg=Black
|
|
|
|
" https://nest.pijul.com/tae/setup:master/
|
|
function! GetCursorPosition()
|
|
if &buftype == ''
|
|
let l:position = getcurpos()
|
|
return l:position[1] . 'Ⲷ ' . l:position[2] . 'Ⲽ'
|
|
endif
|
|
|
|
return &buftype ==# 'quickfix'
|
|
\ ? line('.') . '/' . line('$')
|
|
\ : ''
|
|
endfunction
|
|
|
|
function! ActiveStatus() abort
|
|
let statusline=""
|
|
let statusline.="%1*\ %{winnr()}\ "
|
|
let statusline.="%2*\ %Y\ "
|
|
let statusline.="%3*%<%f"
|
|
let statusline.="%="
|
|
let statusline.="%4*\ %{GetCursorPosition()}\ (%3p%%)"
|
|
return statusline
|
|
endfunction
|
|
|
|
function! PassiveStatus() abort
|
|
let statusline=""
|
|
let statusline.="%5*\ %{winnr()}\ "
|
|
let statusline.="%6*\ %Y\ "
|
|
let statusline.="%7*%<%f"
|
|
let statusline.="%="
|
|
let statusline.="%8*\ %{GetCursorPosition()}\ (%3p%%)"
|
|
return statusline
|
|
endfunction
|
|
|
|
set statusline=%!ActiveStatus()
|