more betterer status line ya

This commit is contained in:
ManjaroOne666 2018-03-15 18:07:58 +00:00
parent 93c6752bc0
commit 63a866e59b
2 changed files with 36 additions and 23 deletions

View File

@ -204,12 +204,15 @@ hi StatusLineActive ctermfg=255 guifg=#ffffff ctermbg=239 guibg=#4e4e4e term=n
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 StatusLineDirActive ctermfg=243 guifg=#777777 ctermbg=237 guibg=#3a3a3a
hi StatusLineFile ctermfg=250 guifg=#cccccc ctermbg=234 guibg=#1c1c1c hi StatusLineFile ctermfg=250 guifg=#cccccc ctermbg=234 guibg=#1c1c1c
hi StatusLineFileMod ctermfg=250 guifg=#cccccc ctermbg=88 guibg=#490000 hi StatusLineFileActive ctermfg=255 guifg=#eeeeee ctermbg=237 guibg=#3a3a3a
hi StatusLineDot ctermfg=236 guifg=#4a4a4a ctermbg=234 guibg=#1c1c1c hi StatusLineDot ctermfg=241 guifg=#606060 ctermbg=234 guibg=#1c1c1c
hi StatusLineDotActive ctermfg=244 guifg=#808080 ctermbg=237 guibg=#3a3a3a
hi StatusLineExt ctermfg=243 guifg=#777777 ctermbg=234 guibg=#1c1c1c 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 hi StatusLineMod ctermfg=255 guifg=#ffffff ctermbg=88 guibg=#490000
function! DoInsertEnter() function! DoInsertEnter()

24
vimrc
View File

@ -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')}/"
else let l:statusline.='%#StatusLineFileActive#'
let l:statusline.="%{expand('%:p:h')}/"
endif
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
let l:statusline.='%#StatusLineDir# '
let l:statusline.="%{expand('%:p:h')}/"
let l:statusline.='%#StatusLineFile#' let l:statusline.='%#StatusLineFile#'
let l:statusline.="%{expand('%:t:r')}" let l:statusline.="%{expand('%:t:r')}"
let l:statusline.='%#StatusLineDot#'
let l:statusline.='%#StatusLineExt#' let l:statusline.='%#StatusLineDot#'
let l:statusline.="%{strlen(expand('%:e'))?'.':''}" let l:statusline.="%{strlen(expand('%:e'))?'.':''}"
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.=' %*' let l:statusline.=' %*'
endif
"}}} "}}}
" 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%*'