removed vim-airline from .vimrc and replaced by native vim-script

This commit is contained in:
Julian Scharrenbach 2017-12-11 11:27:46 +01:00
parent 118326acd0
commit 6f289cc30b

34
.vimrc
View File

@ -121,10 +121,30 @@ if ! &diff
let g:syntastic_check_on_wq = 1 let g:syntastic_check_on_wq = 1
endif endif
" vim-plug plugins "tweaking my statusline
call plug#begin('~/.vim/plugged')
"Plug 'vim-airline/vim-airline' function! GitBranch()
Plug 'bling/vim-airline' return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'")
Plug 'vim-airline/vim-airline-themes' endfunction
call plug#end()
let g:airline_theme='minimalist' function! StatuslineGit()
let l:branchname = GitBranch()
return strlen(l:branchname) > 0?' '.l:branchname.' ':''
endfunction
set laststatus=2 "always show statusline
set statusline=
set statusline+=%#PmenuSel#
set statusline+=%{StatuslineGit()}
set statusline+=%#LineNr#
set statusline+=\ %f
set statusline+=%m\
set statusline+=%=
set statusline+=%#CursorColumn#
set statusline+=\ %y
set statusline+=\ %{&fileencoding?&fileencoding:&encoding}
set statusline+=\[%{&fileformat}\]
set statusline+=\ %p%%
set statusline+=\ %l:%c
set statusline+=\