status line divider
This commit is contained in:
parent
4185dfbcd6
commit
9c7229a57e
|
@ -196,11 +196,12 @@ hi TabLineSel ctermfg=250 guifg=#bcbcbc ctermbg=234 guibg=#1c1c1c
|
||||||
hi TabModified ctermfg=250 guifg=#bcbcbc ctermbg=234 guibg=#1c1c1c
|
hi TabModified ctermfg=250 guifg=#bcbcbc ctermbg=234 guibg=#1c1c1c
|
||||||
hi TabModifiedSelected ctermfg=255 guifg=#eeeeee ctermbg=234 guibg=#1c1c1c
|
hi TabModifiedSelected ctermfg=255 guifg=#eeeeee ctermbg=234 guibg=#1c1c1c
|
||||||
|
|
||||||
hi StatusLineNormal ctermfg=243 guifg=#777777 ctermbg=234 guibg=#1c1c1c term=none cterm=none
|
|
||||||
hi! def link StatusLine StatusLineNormal
|
hi! def link StatusLine StatusLineNormal
|
||||||
|
hi StatusLineNormal ctermfg=243 guifg=#777777 ctermbg=234 guibg=#1c1c1c term=none cterm=none
|
||||||
hi StatusLineInput ctermfg=255 guifg=#ffffff ctermbg=239 guibg=#4e4e4e term=none cterm=none
|
hi StatusLineInput ctermfg=255 guifg=#ffffff ctermbg=239 guibg=#4e4e4e term=none cterm=none
|
||||||
hi StatusLineNC ctermfg=238 guifg=#444444 ctermbg=234 guibg=#1c1c1c term=none cterm=none
|
hi StatusLineNC ctermfg=238 guifg=#444444 ctermbg=234 guibg=NONE term=none cterm=none
|
||||||
hi StatusLineSeparator ctermfg=232 guifg=#000000 ctermbg=232 guibg=NONE
|
hi StatusLineDivider ctermfg=234 guifg=#1a1a1a ctermbg=234 guibg=#1a1a1a term=none cterm=none
|
||||||
|
hi StatusLineSeparator ctermfg=232 guifg=#ffffff ctermbg=232 guibg=NONE
|
||||||
hi StatusLineDir ctermfg=241 guifg=#666666 ctermbg=234 guibg=#1c1c1c
|
hi StatusLineDir ctermfg=241 guifg=#666666 ctermbg=234 guibg=#1c1c1c
|
||||||
hi StatusLineFile ctermfg=250 guifg=#cccccc ctermbg=234 guibg=#1c1c1c
|
hi StatusLineFile ctermfg=250 guifg=#cccccc ctermbg=234 guibg=#1c1c1c
|
||||||
hi StatusLineFileMod ctermfg=250 guifg=#cccccc ctermbg=88 guibg=#490000
|
hi StatusLineFileMod ctermfg=250 guifg=#cccccc ctermbg=88 guibg=#490000
|
||||||
|
|
14
vimrc
14
vimrc
|
@ -251,9 +251,14 @@ iabbrev tehn then
|
||||||
|
|
||||||
" #statusline format{{{
|
" #statusline format{{{
|
||||||
" isactive = 0 when inactive, 1 otherwise
|
" isactive = 0 when inactive, 1 otherwise
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
" get status line{{{
|
||||||
function! GetStatus(isactive)
|
function! GetStatus(isactive)
|
||||||
let l:separator='%#StatusLineSeparator#'
|
let l:separator='%#StatusLineSeparator#'
|
||||||
let l:statusline=''
|
let l:statusline=''
|
||||||
|
"}}}
|
||||||
|
|
||||||
" linter status
|
" linter status
|
||||||
let l:statusline.='%#InterfaceH2# %{LinterStatus()} %*'
|
let l:statusline.='%#InterfaceH2# %{LinterStatus()} %*'
|
||||||
|
@ -279,6 +284,8 @@ function! GetStatus(isactive)
|
||||||
let l:statusline.=l:separator . ' %*'
|
let l:statusline.=l:separator . ' %*'
|
||||||
let l:statusline.=" %{ObsessionStatus(fnamemodify(v:this_session,':t'),'---')} %*"
|
let l:statusline.=" %{ObsessionStatus(fnamemodify(v:this_session,':t'),'---')} %*"
|
||||||
let l:statusline.=l:separator . ' %*'
|
let l:statusline.=l:separator . ' %*'
|
||||||
|
else
|
||||||
|
let l:statusline.='%#StatusLineDivider# %< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >%* '
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" right/left separator
|
" right/left separator
|
||||||
|
@ -293,11 +300,6 @@ function! GetStatus(isactive)
|
||||||
let l:statusline.="%{expand('%:p:h')}/"
|
let l:statusline.="%{expand('%:p:h')}/"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" if &l:modified
|
|
||||||
" let l:statusline.='%#StatusLineFileMod#'
|
|
||||||
" else
|
|
||||||
" let l:statusline.='%#StatusLineFile#'
|
|
||||||
" endif
|
|
||||||
let l:statusline.='%#StatusLineFile#'
|
let l:statusline.='%#StatusLineFile#'
|
||||||
|
|
||||||
let l:statusline.="%{expand('%:t:r')}"
|
let l:statusline.="%{expand('%:t:r')}"
|
||||||
|
@ -316,7 +318,7 @@ function! GetStatus(isactive)
|
||||||
return l:statusline
|
return l:statusline
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" status line autocommands
|
||||||
augroup status
|
augroup status
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd WinEnter * setlocal statusline=%!GetStatus(1)
|
autocmd WinEnter * setlocal statusline=%!GetStatus(1)
|
||||||
|
|
Loading…
Reference in New Issue