highlight extra/unwanted whitespace
This commit is contained in:
parent
7d18c29f1b
commit
08425b4d8e
1 changed files with 5 additions and 0 deletions
5
vimrc
5
vimrc
|
|
@ -33,6 +33,11 @@ set showmatch " show matching brackets
|
||||||
" highlight=8b,db,es,hs,mb,Mn,nu,rs,sr,tb,vr,ws
|
" 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
|
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
|
" do not jump to first character with page commands, ie keep the cursor
|
||||||
" in the current column.
|
" in the current column.
|
||||||
set nostartofline
|
set nostartofline
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue