aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2018-05-11 11:00:59 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-05-29 22:57:27 +0100
commit29a1b8c7fc3c53e746ac746b4e2dfb3414a7ead6 (patch)
treece8feb5079ec6d8dde6a41e2f1d4518434da4b4d
parent7ca3c406f130a53a2b61635b67388d6d2520bcac (diff)
downloaddotnvim-29a1b8c7fc3c53e746ac746b4e2dfb3414a7ead6.tar.gz
dotnvim-29a1b8c7fc3c53e746ac746b4e2dfb3414a7ead6.zip
Customised status line
-rw-r--r--vimrc18
1 files changed, 16 insertions, 2 deletions
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
-