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

17
vimrc
View File

@ -268,6 +268,10 @@ function! GetStatus(isactive)
" let l:curbuf = bufnr('') " let l:curbuf = bufnr('')
" let l:statusline .= '%#CRNormal#' . l:curbuf . ': ' . &buftype . ' ' " let l:statusline .= '%#CRNormal#' . l:curbuf . ': ' . &buftype . ' '
" file percentage
let l:statusline.='%#FoldColumn#: %#InterfaceNormal# %P%* '
if a:isactive if a:isactive
let l:statusline.=l:active . ' %q%h%w%#StatusLineActiveNoText#' let l:statusline.=l:active . ' %q%h%w%#StatusLineActiveNoText#'
else else
@ -280,8 +284,10 @@ 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.='%{strlen(&fenc)?&fenc:&enc},' 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.=' %{&fileformat} '
let l:statusline.=l:separator . l:active let l:statusline.=l:separator . l:active
let l:statusline.=' %{&spelllang} ' let l:statusline.=' %{&spelllang} '
@ -356,7 +362,7 @@ else
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 endif
let l:statusline .= '%f' " TODO color let l:statusline .= '%#CRNormal#%r' " TODO color
"}}} "}}}
@ -405,11 +411,10 @@ endif
endif endif
"}}} "}}}
" file percentage{{{
let l:statusline.=l:separator . '%#InterfaceNormalDark#%P%*'
return l:statusline return l:statusline
endfunction endfunction
"}}}
" status line autocommands{{{ " status line autocommands{{{
augroup status augroup status