better status line highlighting

This commit is contained in:
ManjaroOne666 2018-01-18 11:32:42 +00:00
parent 6061c7d3e3
commit b39c8f3702
2 changed files with 26 additions and 11 deletions

View File

@ -313,6 +313,7 @@ hi TabModifiedSelected ctermfg=255 ctermbg=234
hi StatusLine ctermfg=255 ctermbg=239 term=none cterm=none
hi StatusLineNC ctermfg=238 ctermbg=233 term=none cterm=none
hi StatusLineFile ctermfg=255 ctermbg=237
" set status to change the status line based on mode
if version >= 700
augroup statuscursorlines

36
vimrc
View File

@ -213,30 +213,44 @@ set incsearch
" statusline format
set statusline=\ %F\ " filename and path
"set statusline+=%{SyntaxItem()}
set statusline=%#StatusLineFile#
set statusline+=\ \ \ %t\ " filename
set statusline+=%*
set statusline+=%q " quickfix/location list flag
set statusline+=%h " help file flag
set statusline+=%w " preview window flag
set statusline+=%m " modified flag
set statusline+=%r " read only flag
set statusline+=%#StatusLineNC#
set statusline+=\
set statusline+=[%{strlen(&ft)?&ft:'none'}, " filetype
set statusline+=%*
set statusline+=\ %{strlen(&ft)?&ft:'none'}, " filetype
set statusline+=%{strlen(&fenc)?&fenc:&enc}, " encoding
set statusline+=%{&fileformat}]\ " file format
set statusline+=%{&spelllang}\ \ \ \ \ " Spell language
set statusline+=%{&fileformat}\ " file format
set statusline+=%#StatusLineNC#
set statusline+=\
set statusline+=%*
set statusline+=\ %{&spelllang}\ " Spell language
set statusline+=%#StatusLineNC#
set statusline+=\
set statusline+=%*
set statusline+=%= " left/right separator
set statusline+=[\ %{v:register}\ ]\ " active register
set statusline+=[%{ObsessionStatus(fnamemodify(v:this_session,':t'),'---')}]\ \ " session status
set statusline+=%#StatusLineNC#
set statusline+=\
set statusline+=%*
set statusline+=\ %{v:register}\ " active register
set statusline+=%#StatusLineNC#
set statusline+=\
set statusline+=%*
set statusline+=\ %{ObsessionStatus(fnamemodify(v:this_session,':t'),'---')}\ " session status
set statusline+=%#InterfaceH2#
"set statusline+=\ %{SyntasticStatuslineFlag()}
set statusline+=\ %{LinterStatus()}
" set statusline+=%#InterfaceNormal#
" set statusline+=\ %l\
set statusline+=%#InterfaceNormalDark#
set statusline+=\ %P " percentage through file
set statusline+=\ %P\ " percentage through file
set statusline+=%*
" always show statusline