Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix highlight issues.

  • Loading branch information...
commit 29408676ac61754acf607abb7ecc1c05fbfe3834 1 parent ece9586
Andrew Thomson authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 vimrc
View
6 vimrc
@@ -81,15 +81,15 @@ if has("autocmd")
" Highlight the ends of lines which are over 100 columns in length.
"autocmd BufEnter * highlight OverLength ctermbg=darkgrey guibg=red
highlight OverLength ctermbg=darkgrey guibg=red
- autocmd BufEnter * let mach2=matchadd('OverLength', '\%100v.*')
+ autocmd BufEnter * let mach2=matchadd('OverLength', '\%102v.*', -1)
" Highlight white space at end of lines
highlight TailWhiteSpace ctermbg=darkgrey guibg=darkgrey
- autocmd BufEnter * let mach1=matchadd('TailWhiteSpace', '\s\+$')
+ autocmd BufEnter * let mach1=matchadd('TailWhiteSpace', '[!\s]\s\+$', -1)
" Highlight tabs
highlight TabHighlight ctermbg=red guibg=red
- autocmd BufEnter * let mach3=matchadd('TabHighlight', '\t')
+ autocmd BufEnter * let mach3=matchadd('TabHighlight', '\t', -1)
augroup END
Please sign in to comment.
Something went wrong with that request. Please try again.