From 196d3f0410388ee074368c8fc4d0c5329610bc1b Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Tue, 17 Apr 2018 19:06:55 +0100 Subject: [PATCH] item positioning --- vimrc.d/statusline.vim | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/vimrc.d/statusline.vim b/vimrc.d/statusline.vim index 36f5081..a47d446 100644 --- a/vimrc.d/statusline.vim +++ b/vimrc.d/statusline.vim @@ -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# '