From 3899cdec768772416d1afc976727915222c7f4cc Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Wed, 8 May 2019 21:50:33 +0100 Subject: Add cursorline, better extra whitespace --- vimrc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index e817833..93c8319 100644 --- a/vimrc +++ b/vimrc @@ -71,9 +71,16 @@ let g:gruvbox_italic=1 let g:gruvbox_contrast_dark="hard" colorscheme gruvbox +" show cursor line +set cursorline + " EOL whitespace -hi WhitespaceEOL ctermbg=red guibg=red -match WhitespaceEOL /\s\+$/ +highlight ExtraWhitespace ctermbg=red guibg=red +match ExtraWhitespace /\s\+$/ +autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ +autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@