fucked up status line
This commit is contained in:
parent
63a866e59b
commit
a734c66019
|
@ -189,7 +189,7 @@ hi! def link ModeMsg InterfaceMsg
|
||||||
hi NonText ctermfg=243 guifg=#767676
|
hi NonText ctermfg=243 guifg=#767676
|
||||||
|
|
||||||
hi! def link Title InterfaceH3
|
hi! def link Title InterfaceH3
|
||||||
|
|
||||||
hi TabLine cterm=none ctermfg=242 guifg=#666666 ctermbg=234 guibg=#1c1c1c
|
hi TabLine cterm=none ctermfg=242 guifg=#666666 ctermbg=234 guibg=#1c1c1c
|
||||||
hi TabLineFill cterm=none ctermfg=255 guifg=#eeeeee ctermbg=234 guibg=#1c1c1c
|
hi TabLineFill cterm=none ctermfg=255 guifg=#eeeeee ctermbg=234 guibg=#1c1c1c
|
||||||
hi TabLineSel ctermfg=250 guifg=#bcbcbc ctermbg=234 guibg=#1c1c1c
|
hi TabLineSel ctermfg=250 guifg=#bcbcbc ctermbg=234 guibg=#1c1c1c
|
||||||
|
@ -202,8 +202,10 @@ hi StatusLineNC ctermfg=238 guifg=#444444 ctermbg=232 guibg=NONE term=none c
|
||||||
hi StatusLineNormal ctermfg=243 guifg=#777777 ctermbg=234 guibg=#1c1c1c term=none cterm=none
|
hi StatusLineNormal ctermfg=243 guifg=#777777 ctermbg=234 guibg=#1c1c1c term=none cterm=none
|
||||||
hi StatusLineActive ctermfg=255 guifg=#ffffff ctermbg=239 guibg=#4e4e4e term=none cterm=none
|
hi StatusLineActive ctermfg=255 guifg=#ffffff ctermbg=239 guibg=#4e4e4e term=none cterm=none
|
||||||
hi StatusLineActiveQuotes ctermfg=244 guifg=#888888 ctermbg=239 guibg=#4e4e4e term=none cterm=none
|
hi StatusLineActiveQuotes ctermfg=244 guifg=#888888 ctermbg=239 guibg=#4e4e4e term=none cterm=none
|
||||||
hi StatusLineDividerActive ctermfg=233 guifg=#111111 ctermbg=233 guibg=#111111 term=none cterm=none
|
|
||||||
hi StatusLineDivider ctermfg=234 guifg=#1c1c1c ctermbg=234 guibg=#1c1c1c term=none cterm=none
|
hi StatusLineDivider ctermfg=234 guifg=#1c1c1c ctermbg=234 guibg=#1c1c1c term=none cterm=none
|
||||||
|
hi StatusLineDividerActive ctermfg=233 guifg=#111111 ctermbg=233 guibg=#111111 term=none cterm=none
|
||||||
|
hi StatusLineDividerMod ctermfg=234 guifg=#1c1c1c ctermbg=234 guibg=#1c0000 term=none cterm=none
|
||||||
|
hi StatusLineDividerModActive ctermfg=233 guifg=#111111 ctermbg=233 guibg=#330000 term=none cterm=none
|
||||||
hi StatusLineSeparator ctermfg=255 guifg=#ffffff ctermbg=232 guibg=NONE
|
hi StatusLineSeparator ctermfg=255 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 StatusLineDirActive ctermfg=243 guifg=#777777 ctermbg=237 guibg=#3a3a3a
|
hi StatusLineDirActive ctermfg=243 guifg=#777777 ctermbg=237 guibg=#3a3a3a
|
||||||
|
|
38
vimrc
38
vimrc
|
@ -252,13 +252,13 @@ iabbrev tehn then
|
||||||
" #statusline format{{{
|
" #statusline format{{{
|
||||||
" isactive = 0 when inactive, 1 otherwise
|
" isactive = 0 when inactive, 1 otherwise
|
||||||
|
|
||||||
" get status line{{{
|
" get status line
|
||||||
function! GetStatus(isactive)
|
function! GetStatus(isactive)
|
||||||
let l:separator='%#StatusLineSeparator# '
|
let l:separator='%#StatusLineSeparator# '
|
||||||
let l:normal='%#StatusLineNormal#'
|
let l:normal='%#StatusLineNormal#'
|
||||||
let l:active='%#StatusLineActive#'
|
let l:active='%#StatusLineActive#'
|
||||||
let l:statusline=''
|
let l:statusline=''
|
||||||
"}}}
|
|
||||||
" linter status{{{
|
" linter status{{{
|
||||||
let l:statusline.='%#InterfaceH2# %{LinterStatus()} %*'
|
let l:statusline.='%#InterfaceH2# %{LinterStatus()} %*'
|
||||||
"}}}
|
"}}}
|
||||||
|
@ -288,13 +288,21 @@ function! GetStatus(isactive)
|
||||||
let l:statusline.=l:separator . l:active
|
let l:statusline.=l:separator . l:active
|
||||||
endif
|
endif
|
||||||
"}}}
|
"}}}
|
||||||
" right/left separator{{{
|
" right/left separator{{{
|
||||||
if a:isactive
|
" let l:statusline.='%#StatusLineDivider'
|
||||||
let l:statusline.='%#StatusLineDividerActive# %< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >' . l:separator . '%*'
|
|
||||||
else
|
" " if &modified == 1
|
||||||
let l:statusline.='%#StatusLineDivider# %< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >' . l:separator . '%*'
|
" " let l:statusline.='Mod'
|
||||||
endif
|
" " endif
|
||||||
let l:statusline.='%='
|
" echo a:isactive
|
||||||
|
" if a:isactive
|
||||||
|
" let l:statusline.='Active'
|
||||||
|
" endif
|
||||||
|
|
||||||
|
"let l:statusline.='# %< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >' . l:separator . '%*%='
|
||||||
|
""}}}
|
||||||
|
" modified flag {{{
|
||||||
|
let l:statusline.='%#StatusLineMod#%M' . l:separator . '%*'
|
||||||
"}}}
|
"}}}
|
||||||
" path/filename.extension{{{
|
" path/filename.extension{{{
|
||||||
|
|
||||||
|
@ -309,7 +317,6 @@ function! GetStatus(isactive)
|
||||||
let l:statusline.="%{strlen(expand('%:e'))?'.':''}"
|
let l:statusline.="%{strlen(expand('%:e'))?'.':''}"
|
||||||
let l:statusline.='%#StatusLineExtActive#'
|
let l:statusline.='%#StatusLineExtActive#'
|
||||||
let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')}"
|
let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')}"
|
||||||
let l:statusline.=' %*'
|
|
||||||
else
|
else
|
||||||
let l:statusline.='%#StatusLineDir# '
|
let l:statusline.='%#StatusLineDir# '
|
||||||
let l:statusline.="%{expand('%:p:h')}/"
|
let l:statusline.="%{expand('%:p:h')}/"
|
||||||
|
@ -321,12 +328,9 @@ function! GetStatus(isactive)
|
||||||
let l:statusline.="%{strlen(expand('%:e'))?'.':''}"
|
let l:statusline.="%{strlen(expand('%:e'))?'.':''}"
|
||||||
let l:statusline.='%#StatusLineExt#'
|
let l:statusline.='%#StatusLineExt#'
|
||||||
let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')}"
|
let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')}"
|
||||||
let l:statusline.=' %*'
|
|
||||||
endif
|
endif
|
||||||
|
let l:statusline.=' ' . l:separator
|
||||||
|
|
||||||
"}}}
|
|
||||||
" modified flag {{{
|
|
||||||
let l:statusline.=l:separator . '%#StatusLineMod#%M' . l:separator . '%*'
|
|
||||||
"}}}
|
"}}}
|
||||||
" file percentage{{{
|
" file percentage{{{
|
||||||
let l:statusline.='%#InterfaceNormalDark#%P%*'
|
let l:statusline.='%#InterfaceNormalDark#%P%*'
|
||||||
|
@ -336,12 +340,12 @@ endfunction
|
||||||
" status line autocommands{{{
|
" status line autocommands{{{
|
||||||
augroup status
|
augroup status
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd WinEnter * setlocal statusline=%!GetStatus(1)
|
autocmd WinEnter * set statusline=%!GetStatus(1)
|
||||||
autocmd WinLeave * setlocal statusline=%!GetStatus(0)
|
autocmd WinLeave * set statusline=%!GetStatus(0)
|
||||||
" autocmd InsertChange * setlocal statusline=%!GetStatus(1)
|
" autocmd InsertChange * setlocal statusline=%!GetStatus(1)
|
||||||
augroup END
|
augroup END
|
||||||
"}}}}}}
|
"}}}}}}
|
||||||
|
|
||||||
" #autocommands{{{
|
" #autocommands{{{
|
||||||
|
|
||||||
" persistent folds
|
" persistent folds
|
||||||
|
|
Loading…
Reference in New Issue