more betterer status line ya
This commit is contained in:
parent
93c6752bc0
commit
63a866e59b
|
@ -199,18 +199,21 @@ hi TabModifiedSelected ctermfg=255 guifg=#eeeeee ctermbg=234 guibg=#1c1c1c
|
||||||
hi StatusLine ctermfg=232 guifg=#000000 ctermbg=232 guibg=NONE gui=NONE
|
hi StatusLine ctermfg=232 guifg=#000000 ctermbg=232 guibg=NONE gui=NONE
|
||||||
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 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 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 StatusLineSeparator ctermfg=232 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 StatusLineFile ctermfg=250 guifg=#cccccc ctermbg=234 guibg=#1c1c1c
|
hi StatusLineDirActive ctermfg=243 guifg=#777777 ctermbg=237 guibg=#3a3a3a
|
||||||
hi StatusLineFileMod ctermfg=250 guifg=#cccccc ctermbg=88 guibg=#490000
|
hi StatusLineFile ctermfg=250 guifg=#cccccc ctermbg=234 guibg=#1c1c1c
|
||||||
hi StatusLineDot ctermfg=236 guifg=#4a4a4a ctermbg=234 guibg=#1c1c1c
|
hi StatusLineFileActive ctermfg=255 guifg=#eeeeee ctermbg=237 guibg=#3a3a3a
|
||||||
hi StatusLineExt ctermfg=243 guifg=#777777 ctermbg=234 guibg=#1c1c1c
|
hi StatusLineDot ctermfg=241 guifg=#606060 ctermbg=234 guibg=#1c1c1c
|
||||||
hi StatusLineMod ctermfg=255 guifg=#ffffff ctermbg=88 guibg=#490000
|
hi StatusLineDotActive ctermfg=244 guifg=#808080 ctermbg=237 guibg=#3a3a3a
|
||||||
|
hi StatusLineExt ctermfg=243 guifg=#777777 ctermbg=234 guibg=#1c1c1c
|
||||||
|
hi StatusLineExtActive ctermfg=249 guifg=#bbbbbb ctermbg=239 guibg=#3a3a3a
|
||||||
|
hi StatusLineMod ctermfg=255 guifg=#ffffff ctermbg=88 guibg=#490000
|
||||||
|
|
||||||
function! DoInsertEnter()
|
function! DoInsertEnter()
|
||||||
set cursorline
|
set cursorline
|
||||||
|
|
32
vimrc
32
vimrc
|
@ -297,26 +297,36 @@ function! GetStatus(isactive)
|
||||||
let l:statusline.='%='
|
let l:statusline.='%='
|
||||||
"}}}
|
"}}}
|
||||||
" path/filename.extension{{{
|
" path/filename.extension{{{
|
||||||
let l:statusline.='%#StatusLineDir# '
|
|
||||||
|
|
||||||
if a:isactive
|
if a:isactive
|
||||||
|
let l:statusline.='%#StatusLineDirActive# '
|
||||||
let l:statusline.="%{expand('%:p:h:t')}/"
|
let l:statusline.="%{expand('%:p:h:t')}/"
|
||||||
|
let l:statusline.='%#StatusLineFileActive#'
|
||||||
|
|
||||||
|
let l:statusline.="%{expand('%:t:r')}"
|
||||||
|
|
||||||
|
let l:statusline.='%#StatusLineDotActive#'
|
||||||
|
let l:statusline.="%{strlen(expand('%:e'))?'.':''}"
|
||||||
|
let l:statusline.='%#StatusLineExtActive#'
|
||||||
|
let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')}"
|
||||||
|
let l:statusline.=' %*'
|
||||||
else
|
else
|
||||||
|
let l:statusline.='%#StatusLineDir# '
|
||||||
let l:statusline.="%{expand('%:p:h')}/"
|
let l:statusline.="%{expand('%:p:h')}/"
|
||||||
|
let l:statusline.='%#StatusLineFile#'
|
||||||
|
|
||||||
|
let l:statusline.="%{expand('%:t:r')}"
|
||||||
|
|
||||||
|
let l:statusline.='%#StatusLineDot#'
|
||||||
|
let l:statusline.="%{strlen(expand('%:e'))?'.':''}"
|
||||||
|
let l:statusline.='%#StatusLineExt#'
|
||||||
|
let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')}"
|
||||||
|
let l:statusline.=' %*'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let l:statusline.='%#StatusLineFile#'
|
|
||||||
|
|
||||||
let l:statusline.="%{expand('%:t:r')}"
|
|
||||||
let l:statusline.='%#StatusLineDot#'
|
|
||||||
|
|
||||||
let l:statusline.='%#StatusLineExt#'
|
|
||||||
let l:statusline.="%{strlen(expand('%:e'))?'.':''}"
|
|
||||||
let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')}"
|
|
||||||
let l:statusline.=' %*'
|
|
||||||
"}}}
|
"}}}
|
||||||
" modified flag {{{
|
" modified flag {{{
|
||||||
let l:statusline.='%#StatusLineMod#%M' . l:separator . '%*'
|
let l:statusline.=l:separator . '%#StatusLineMod#%M' . l:separator . '%*'
|
||||||
"}}}
|
"}}}
|
||||||
" file percentage{{{
|
" file percentage{{{
|
||||||
let l:statusline.='%#InterfaceNormalDark#%P%*'
|
let l:statusline.='%#InterfaceNormalDark#%P%*'
|
||||||
|
|
Loading…
Reference in New Issue