highlight extra/unwanted whitespace

This commit is contained in:
tengel 2024-03-20 11:25:14 -05:00
parent 7d18c29f1b
commit 08425b4d8e

5
vimrc
View file

@ -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