item positioning
This commit is contained in:
parent
3d10c0b6be
commit
196d3f0410
|
@ -90,6 +90,20 @@ function! GetStatus(isactive) "{{{
|
|||
let l:statusline .= "%{&buftype == '' ? '' : ' '}%s"
|
||||
"}}}
|
||||
|
||||
" file info
|
||||
if a:isactive == 1 "{{{
|
||||
let l:statusline.=l:active
|
||||
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} '
|
||||
let l:statusline.=l:separator
|
||||
endif
|
||||
"}}}
|
||||
|
||||
" right/left divider
|
||||
let l:statusline.=l:separator "{{{
|
||||
" modified version
|
||||
|
@ -113,20 +127,6 @@ function! GetStatus(isactive) "{{{
|
|||
"}}}
|
||||
|
||||
|
||||
" file info
|
||||
if a:isactive == 1 "{{{
|
||||
let l:statusline.=l:active
|
||||
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} '
|
||||
let l:statusline.=l:separator
|
||||
endif
|
||||
"}}}
|
||||
|
||||
" path/filename.extension
|
||||
if a:isactive "{{{
|
||||
let l:statusline.='%#StatusLineDirActive# '
|
||||
|
|
Loading…
Reference in New Issue