status line for help, quickfix buffers etc
This commit is contained in:
parent
2d14eb62bc
commit
f56f82688c
|
@ -204,7 +204,9 @@ hi StatusLine ctermfg=232 guifg=#000000 ctermbg=232 guibg=NONE gui=NON
|
||||||
hi StatusLineNC ctermfg=238 guifg=#444444 ctermbg=232 guibg=NONE term=none cterm=none gui=NONE
|
hi StatusLineNC ctermfg=238 guifg=#444444 ctermbg=232 guibg=NONE term=none cterm=none gui=NONE
|
||||||
|
|
||||||
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 StatusLineNormalNoText ctermfg=234 guifg=#1c1c1c 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 StatusLineActiveNoText ctermfg=239 guifg=#4e4e4e 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 StatusLineSeparator ctermfg=255 guifg=#ffffff ctermbg=232 guibg=NONE
|
hi StatusLineSeparator ctermfg=255 guifg=#ffffff ctermbg=232 guibg=NONE
|
||||||
|
|
13
vimrc
13
vimrc
|
@ -263,14 +263,23 @@ function! GetStatus(isactive)
|
||||||
let l:bracket_open = '%#CRNoiseDark#('
|
let l:bracket_open = '%#CRNoiseDark#('
|
||||||
let l:bracket_close = '%#CRNoiseDark#) '
|
let l:bracket_close = '%#CRNoiseDark#) '
|
||||||
let l:statusline = ''
|
let l:statusline = ''
|
||||||
|
" let l:statusline = '%#CRNoise#b%#CRNoiseDark#:%#CRNoiseBright#%n '
|
||||||
|
|
||||||
|
" let l:curbuf = bufnr('')
|
||||||
|
" let l:statusline .= '%#CRNormal#' . l:curbuf . ': ' . &buftype . ' '
|
||||||
|
|
||||||
|
if a:isactive
|
||||||
|
let l:statusline.=l:active . '%q%h%w%#StatusLineActiveNoText#'
|
||||||
|
else
|
||||||
|
let l:statusline.=l:normal . '%q%h%w%#StatusLineNormalNoText#'
|
||||||
|
endif
|
||||||
|
let l:statusline .= "%{&buftype == '' ? '' : ' '}%s "
|
||||||
|
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
" file info{{{
|
" file info{{{
|
||||||
if a:isactive == 1
|
if a:isactive == 1
|
||||||
let l:statusline.=l:active
|
let l:statusline.=l:active
|
||||||
let l:statusline.='%q%h%w%r'
|
|
||||||
let l:statusline.=" %{strlen(&ft)?&ft:'none'},"
|
let l:statusline.=" %{strlen(&ft)?&ft:'none'},"
|
||||||
let l:statusline.='%{strlen(&fenc)?&fenc:&enc},'
|
let l:statusline.='%{strlen(&fenc)?&fenc:&enc},'
|
||||||
let l:statusline.='%{&fileformat} '
|
let l:statusline.='%{&fileformat} '
|
||||||
|
@ -321,6 +330,7 @@ function! GetStatus(isactive)
|
||||||
|
|
||||||
" path/filename.extension{{{
|
" path/filename.extension{{{
|
||||||
|
|
||||||
|
|
||||||
if a:isactive
|
if a:isactive
|
||||||
let l:statusline.='%#StatusLineDirActive# '
|
let l:statusline.='%#StatusLineDirActive# '
|
||||||
let l:statusline.="%{expand('%:p:h:t')}/"
|
let l:statusline.="%{expand('%:p:h:t')}/"
|
||||||
|
@ -346,6 +356,7 @@ else
|
||||||
let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')}"
|
let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')}"
|
||||||
let l:statusline.=' %*'
|
let l:statusline.=' %*'
|
||||||
endif
|
endif
|
||||||
|
let l:statusline .= '%f' " TODO color
|
||||||
|
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue