Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 402 Bytes
" https://github.com/aalin/dotfiles/blob/master/vimrc
"
" NOTE: Can only have three of these, using match/2match/3match:
" http://stackoverflow.com/a/18167529/6962
autocmd BufNewFile,BufRead * highlight nbsp ctermbg=Red
autocmd BufNewFile,BufRead * match nbsp "[\xc2\xa0]"
autocmd BufNewFile,BufRead * highlight trailing_spaces ctermbg=Red
autocmd BufNewFile,BufRead * 2match trailing_spaces "\s\+$"