better status line

This commit is contained in:
ManjaroOne666 2017-09-12 12:48:30 +01:00
parent b6809adf2a
commit b6083e054f
1 changed files with 22 additions and 6 deletions

28
vimrc
View File

@ -64,6 +64,8 @@ Plugin 'ludovicchabant/vim-gutentags'
" Ctrlp " Ctrlp
Plugin 'ctrlpvim/ctrlp.vim' Plugin 'ctrlpvim/ctrlp.vim'
" Obsession
Plugin 'tpope/vim-obsession'
" All of your Plugins must be added before the following line " All of your Plugins must be added before the following line
call vundle#end() " required call vundle#end() " required
@ -110,19 +112,33 @@ set autoindent
" set width of the fold column to create a margin " set width of the fold column to create a margin
set foldcolumn=1 set foldcolumn=1
hi FoldColumn ctermbg=226 ctermfg=255 " hi FoldColumn ctermfg=255 ctermbg=226
colorscheme customred256 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 a right margin and it's colour
set colorcolumn=100 set colorcolumn=100