From d02726c0d647028682bfb7366993c85f63fa3004 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Sun, 20 May 2018 16:44:14 +0100 Subject: [PATCH] file ingo back yo --- vimrc.d/statusline.vim | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/vimrc.d/statusline.vim b/vimrc.d/statusline.vim index a0fd9f0..ea31257 100644 --- a/vimrc.d/statusline.vim +++ b/vimrc.d/statusline.vim @@ -12,7 +12,7 @@ augroup END " functions -function! GetStatus(isactive) "{{{ +function! GetStatus(isactive) abort "{{{ " let l:linter = ale#statusline#Count(bufnr('')) let l:divider = '- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >' let l:separator = '%#StatusLineSeparator# ' @@ -48,20 +48,6 @@ 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 @@ -82,6 +68,21 @@ function! GetStatus(isactive) "{{{ let l:statusline .= ' ' "}}} + " file info + if a:isactive == 1 "{{{ + " let l:statusline.=l:active + let l:statusline.='%#StatusLineFileActive#' + " 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 "{{{