buffer numbers in status line
This commit is contained in:
parent
804aac70cd
commit
3ae60db0d2
|
@ -41,9 +41,9 @@ call SetColor('ColorColumn', '', '#1d0808', '', '#f0ebeb', '')
|
||||||
" CursorColumn
|
" CursorColumn
|
||||||
call SetColor('CursorLine', '', '#222222', '', '#B3C2C7', '')
|
call SetColor('CursorLine', '', '#222222', '', '#B3C2C7', '')
|
||||||
call SetColor('Directory', '#eeeeee', '', '', '', '')
|
call SetColor('Directory', '#eeeeee', '', '', '', '')
|
||||||
call SetColor('DiffAdd', '#aaaaaa', '#001000', '', '#ddcccc', '')
|
call SetColor('DiffAdd', '#aaaaaa', '#001000', '', '#ccddcc', '')
|
||||||
call SetColor('DiffChange', '#777777', '#101010', '', '#dddddd', '')
|
call SetColor('DiffChange', '#777777', '#101010', '', '#dddddd', '')
|
||||||
call SetColor('DiffDelete', '#333333', '#200000', '', '#ccddcc', '')
|
call SetColor('DiffDelete', '#333333', '#200000', '', '#ddcccc', '')
|
||||||
call SetColor('DiffText', '#cccccc', '#101010', '', '#A9CCD6', '')
|
call SetColor('DiffText', '#cccccc', '#101010', '', '#A9CCD6', '')
|
||||||
call SetColor('EndOfBuffer', '#121212', '', '#bbbbbb', '', '')
|
call SetColor('EndOfBuffer', '#121212', '', '#bbbbbb', '', '')
|
||||||
call SetColor('ErrorMsg', '#ff0000', '', '#222222', '#ffaaaa', 'bold')
|
call SetColor('ErrorMsg', '#ff0000', '', '#222222', '#ffaaaa', 'bold')
|
||||||
|
@ -151,6 +151,9 @@ call SetColor('StatusLineActive', '#ffffff', '#4e4e4e', '#333334', '#a
|
||||||
call SetColor('StatusLineActiveNoText', '#4e4e4e', '#4e4e4e', g:ui_l_bg__active, g:ui_l_bg__active, '')
|
call SetColor('StatusLineActiveNoText', '#4e4e4e', '#4e4e4e', g:ui_l_bg__active, g:ui_l_bg__active, '')
|
||||||
call SetColor('StatusLineActiveQuotes', '#888888', '#4e4e4e', '', g:ui_l_bg__active, '')
|
call SetColor('StatusLineActiveQuotes', '#888888', '#4e4e4e', '', g:ui_l_bg__active, '')
|
||||||
|
|
||||||
|
call SetColor('StatusLineBufferNr', '#555555', '#111111', '#666666', g:ui_l_bg, 'italic')
|
||||||
|
call SetColor('StatusLineBufferNrActive', '#777777', '#111111', '#444444', g:ui_l_bg__active, 'italic')
|
||||||
|
|
||||||
call SetColor('StatusLinePercent', '#555555', '#111111', '#999999', g:ui_l_bg, 'italic')
|
call SetColor('StatusLinePercent', '#555555', '#111111', '#999999', g:ui_l_bg, 'italic')
|
||||||
call SetColor('StatusLinePercentActive', '#777777', '#111111', '#333333', g:ui_l_bg__active, 'italic')
|
call SetColor('StatusLinePercentActive', '#777777', '#111111', '#333333', g:ui_l_bg__active, 'italic')
|
||||||
|
|
||||||
|
|
|
@ -20,8 +20,17 @@ function! GetStatus(isactive) "{{{
|
||||||
let l:active = '%#StatusLineActive#'
|
let l:active = '%#StatusLineActive#'
|
||||||
let l:statusline = ''
|
let l:statusline = ''
|
||||||
|
|
||||||
|
"buffer number
|
||||||
|
if a:isactive
|
||||||
|
let l:statusline .= '%#StatusLineBufferNrActive#'
|
||||||
|
else
|
||||||
|
let l:statusline .= '%#StatusLineBufferNr#'
|
||||||
|
endif
|
||||||
|
let l:statusline .= ' %n %* '
|
||||||
|
"}}}
|
||||||
|
|
||||||
" file percentage
|
" file percentage
|
||||||
let l:statusline .= '%#FoldColumn#┼ ' "{{{
|
let l:statusline .= '%#FoldColumn# ' "{{{
|
||||||
if a:isactive
|
if a:isactive
|
||||||
let l:statusline .= '%#StatusLinePercentActive#'
|
let l:statusline .= '%#StatusLinePercentActive#'
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue