From 29a1b8c7fc3c53e746ac746b4e2dfb3414a7ead6 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Fri, 11 May 2018 11:00:59 +0100 Subject: Customised status line --- vimrc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 5e5069c..e4a1419 100644 --- a/vimrc +++ b/vimrc @@ -24,11 +24,26 @@ set number " always show status set laststatus=2 + " highlight end of line whitespace highlight WhitespaceEOL ctermbg=red guibg=red match WhitespaceEOL /\s\+$/ -" spellcheck please! +set statusline = +" Buffer number +set statusline +=[%n] +" File description +set statusline +=\ %f\ %h%m%r%w +" Filetype +set statusline +=%y +" Name of the current branch (needs fugitive.vim) +set statusline +=\ %{fugitive#statusline()} +" Total number of lines in the file +set statusline +=%=%-10L +" Line, column and percentage +set statusline +=%=%-14.(%l,%c%V%)\ %P + +" " spellcheck please! setlocal spell spelllang=en_gb hi clear SpellBad hi SpellBad term=standout ctermfg=1 cterm=bold gui=undercurl guisp=Red @@ -78,4 +93,3 @@ else set nospell endif let base16colorspace=256 " Access colors present in 256 colorspace - -- cgit v1.2.3