status line file percentage moved
This commit is contained in:
parent
f56f82688c
commit
137ec00005
23
vimrc
23
vimrc
|
@ -268,10 +268,14 @@ 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
|
||||||
let l:statusline.=l:normal . '%q%h%w%#StatusLineNormalNoText#'
|
let l:statusline.=l:normal . ' %q%h%w%#StatusLineNormalNoText#'
|
||||||
endif
|
endif
|
||||||
let l:statusline .= "%{&buftype == '' ? '' : ' '}%s "
|
let l:statusline .= "%{&buftype == '' ? '' : ' '}%s "
|
||||||
|
|
||||||
|
@ -280,9 +284,11 @@ 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.='%{&fileformat} '
|
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.=l:separator . l:active
|
||||||
let l:statusline.=' %{&spelllang} '
|
let l:statusline.=' %{&spelllang} '
|
||||||
else
|
else
|
||||||
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue