Browse files

Use math instead of listchars for highlighting trailing space.

  • Loading branch information...
1 parent 66feb90 commit caf8a785c1979dc43eb15c8cad92819b910bf977 John MacFarlane committed Aug 31, 2011
Showing with 9 additions and 4 deletions.
  1. +9 −4 vimrc
13 vimrc
@@ -59,12 +59,17 @@ set visualbell
" Show line and column position of cursor, with percentage.
set ruler
+" Show trailing whitespace, tabs
+"highlight TabChar ctermbg=yellow guibg=yellow
+highlight ExtraWhitespace ctermbg=Gray guibg=Gray
+"match TabChar /\t\+/
+match ExtraWhitespace /\s\+$/
" Make tabs and trailing space visible on ,l
-set listchars=tab:>-,trail:~
-set list
-nmap <silent> <leader>l :set invlist list?<cr>
+" set listchars=tab:>-,trail:~
+" nmap <silent> <leader>l :set invlist list?<cr>
" Make the highlighting of trailing spaces easier to distinguish from periods.
-highlight SpecialKey ctermfg=Gray
+" highlight SpecialKey ctermfg=Gray
" Show matching brackets.
set showmatch

0 comments on commit caf8a78

Please sign in to comment.