1. Paul McLanahan
  2. dotfiles

Commits

Paul McLanahan  committed 956c971

Added extra space highlingting to vim

  • Participants
  • Parent commits 823f300
  • Branches default

Comments (0)

Files changed (1)

File dotfiles/.vimrc

View file
     " File formats
     au BufNewFile,BufRead  *.pls    set syntax=dosini
     au BufNewFile,BufRead  modprobe.conf    set syntax=modconf
+
+    " Highlight spaces that don't belong
+    highlight ExtraWhitespace ctermbg=red guibg=red
+    :autocmd Syntax * syn match ExtraWhitespace /\s\+$\| \+\ze\t/
 endif
 
 function! Find(name)
 
 " GUndo
 nnoremap <F5> :GundoToggle<CR>
+