status line file percentage moved

This commit is contained in:
ManjaroOne666 2018-03-17 12:46:20 +00:00
parent f56f82688c
commit 137ec00005
1 changed files with 14 additions and 9 deletions

23
vimrc
View File

@ -268,10 +268,14 @@ function! GetStatus(isactive)
" let l:curbuf = bufnr('')
" let l:statusline .= '%#CRNormal#' . l:curbuf . ': ' . &buftype . ' '
" file percentage
let l:statusline.='%#FoldColumn#: %#InterfaceNormal# %P%* '
if a:isactive
let l:statusline.=l:active . '%q%h%w%#StatusLineActiveNoText#'
let l:statusline.=l:active . ' %q%h%w%#StatusLineActiveNoText#'
else
let l:statusline.=l:normal . '%q%h%w%#StatusLineNormalNoText#'
let l:statusline.=l:normal . ' %q%h%w%#StatusLineNormalNoText#'
endif
let l:statusline .= "%{&buftype == '' ? '' : ' '}%s "
@ -280,9 +284,11 @@ function! GetStatus(isactive)
" file info{{{
if a:isactive == 1
let l:statusline.=l:active
let l:statusline.=" %{strlen(&ft)?&ft:'none'},"
let l:statusline.='%{strlen(&fenc)?&fenc:&enc},'
let l:statusline.='%{&fileformat} '
let l:statusline.="%{strlen(&ft)?&ft:'none'} "
let l:statusline.=l:separator . l:active
let l:statusline.=' %{strlen(&fenc)?&fenc:&enc} '
let l:statusline.=l:separator . l:active
let l:statusline.=' %{&fileformat} '
let l:statusline.=l:separator . l:active
let l:statusline.=' %{&spelllang} '
else
@ -356,7 +362,7 @@ else
let l:statusline.="%{strlen(expand('%:e'))?expand('%:e'):expand('%:e')}"
let l:statusline.=' %*'
endif
let l:statusline .= '%f' " TODO color
let l:statusline .= '%#CRNormal#%r' " TODO color
"}}}
@ -405,11 +411,10 @@ endif
endif
"}}}
" file percentage{{{
let l:statusline.=l:separator . '%#InterfaceNormalDark#%P%*'
return l:statusline
endfunction
"}}}
" status line autocommands{{{
augroup status