Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use math instead of listchars for highlighting trailing space.

  • Loading branch information...
commit caf8a785c1979dc43eb15c8cad92819b910bf977 1 parent 66feb90
John MacFarlane authored
Showing with 9 additions and 4 deletions.
  1. +9 −4 vimrc
13 vimrc
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.