From 08425b4d8e3722281861982b5d77462586659319 Mon Sep 17 00:00:00 2001 From: tengel Date: Wed, 20 Mar 2024 11:25:14 -0500 Subject: [PATCH] highlight extra/unwanted whitespace --- vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vimrc b/vimrc index f77beaf..2d48731 100644 --- a/vimrc +++ b/vimrc @@ -33,6 +33,11 @@ set showmatch " show matching brackets " highlight=8b,db,es,hs,mb,Mn,nu,rs,sr,tb,vr,ws set highlight=8r,db,es,hs,mb,Mr,nu,rs,sr,tb,vr,ws +" highlight extra/unwanted whitespace +autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red +highlight ExtraWhitespace ctermbg=red guibg=red guifg=red +match ExtraWhitespace /\s\+$\| \+\ze\t/ + " do not jump to first character with page commands, ie keep the cursor " in the current column. set nostartofline