statusline tweaks

This commit is contained in:
ManjaroOne666 2018-03-17 23:00:52 +00:00
parent 0c1497ad42
commit fb5beeb4ca
1 changed files with 3 additions and 3 deletions

6
vimrc
View File

@ -273,9 +273,9 @@ function! GetStatus(isactive)
if a:isactive if a:isactive
let l:statusline.=l:active . ' %q%h%w%#StatusLineActiveNoText#' let l:statusline .= l:active . "%{&buftype == '' ? '' : ' '}%q%h%w%#StatusLineActiveNoText#"
else else
let l:statusline.=l:normal . ' %q%h%w%#StatusLineNormalNoText#' let l:statusline .= l:normal . "%{&buftype == '' ? '' : ' '}%q%h%w%#StatusLineNormalNoText#"
endif endif
let l:statusline .= "%{&buftype == '' ? '' : ' '}%s" let l:statusline .= "%{&buftype == '' ? '' : ' '}%s"
@ -284,7 +284,7 @@ function! GetStatus(isactive)
" 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.="%{strlen(&ft)?&ft:'none'} " let l:statusline.=" %{strlen(&ft)?&ft:'none'} "
let l:statusline.=l:separator . l:active let l:statusline.=l:separator . l:active
let l:statusline.=' %{strlen(&fenc)?&fenc:&enc} ' let l:statusline.=' %{strlen(&fenc)?&fenc:&enc} '
let l:statusline.=l:separator . l:active let l:statusline.=l:separator . l:active