From b6083e054f11483ff2a4bb2adce3675b4b5878f5 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Tue, 12 Sep 2017 12:48:30 +0100 Subject: [PATCH] better status line --- vimrc | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/vimrc b/vimrc index c4c7ad5..5f9e883 100644 --- a/vimrc +++ b/vimrc @@ -64,6 +64,8 @@ Plugin 'ludovicchabant/vim-gutentags' " Ctrlp Plugin 'ctrlpvim/ctrlp.vim' +" Obsession +Plugin 'tpope/vim-obsession' " All of your Plugins must be added before the following line call vundle#end() " required @@ -110,19 +112,33 @@ set autoindent " set width of the fold column to create a margin set foldcolumn=1 -hi FoldColumn ctermbg=226 ctermfg=255 +" hi FoldColumn ctermfg=255 ctermbg=226 colorscheme customred256 +" statusline format +set statusline=\ %F\ " filename and path +set statusline+=%h " help file flag +set statusline+=%w " preview window flag +set statusline+=%m " modified flag +set statusline+=%r " read only flag +set statusline+=\ +set statusline+=[%{strlen(&ft)?&ft:'none'}, " filetype +set statusline+=%{strlen(&fenc)?&fenc:&enc}, " encoding +set statusline+=%{&fileformat}]\ " file format +set statusline+=%{&spelllang} " Spell language + +set statusline+=%= " left/right separator +set statusline+=[\ %{v:register}\ ]\ " active register +set statusline+=[%{ObsessionStatus(fnamemodify(v:this_session,':t'),'---')}]\ \ " session status +set statusline+=%(%l,%c%V\ %=\ %P%) " line number,virtual line number, scroll percentage + +" always show statusline +set laststatus=2 - - -" tagbar styling - - " set a right margin and it's colour set colorcolumn=100