Commits

Keith Bourgoin  committed 681cf84

Mark trailing whitespace red

  • Participants
  • Parent commits 4cc440b

Comments (0)

Files changed (1)

File etc/vim/vimrc

 set nowrap
 set linebreak  " Wrap at word
 
+" Show Trailing Spaces ********************************************************
+highlight ExtraWhitespace ctermbg=red guibg=red
+match ExtraWhitespace /\s\+$/
+autocmd BufWinEnter * match ExtraWhitespace /\s\+$/
+autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
+autocmd InsertLeave * match ExtraWhitespace /\s\+$/
+autocmd BufWinLeave * call clearmatches()
 
 " Directories *****************************************************************
 " Setup backup location and enable
 "match LongLineWarning '\%120v.*'
 
 "autocmd User ~/git/some_folder/* call Tabstyle_spaces() | let g:force_xhtml=1
+
+