buffer numbers in status line

This commit is contained in:
ManjaroOne666 2018-05-14 10:58:47 +01:00
parent 804aac70cd
commit 3ae60db0d2
2 changed files with 15 additions and 3 deletions

View File

@ -41,9 +41,9 @@ call SetColor('ColorColumn', '', '#1d0808', '', '#f0ebeb', '')
" CursorColumn
call SetColor('CursorLine', '', '#222222', '', '#B3C2C7', '')
call SetColor('Directory', '#eeeeee', '', '', '', '')
call SetColor('DiffAdd', '#aaaaaa', '#001000', '', '#ddcccc', '')
call SetColor('DiffAdd', '#aaaaaa', '#001000', '', '#ccddcc', '')
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('EndOfBuffer', '#121212', '', '#bbbbbb', '', '')
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('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('StatusLinePercentActive', '#777777', '#111111', '#333333', g:ui_l_bg__active, 'italic')

View File

@ -20,8 +20,17 @@ function! GetStatus(isactive) "{{{
let l:active = '%#StatusLineActive#'
let l:statusline = ''
"buffer number
if a:isactive
let l:statusline .= '%#StatusLineBufferNrActive#'
else
let l:statusline .= '%#StatusLineBufferNr#'
endif
let l:statusline .= ' %n %* '
"}}}
" file percentage
let l:statusline .= '%#FoldColumn#┼ ' "{{{
let l:statusline .= '%#FoldColumn# ' "{{{
if a:isactive
let l:statusline .= '%#StatusLinePercentActive#'
else