projects
/
dotfiles
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b848c1
)
Added bad whitespace highlighting.
author
David Kerkeslager
<kerkeslager@gmail.com>
Wed, 25 Aug 2010 01:24:24 +0000
(21:24 -0400)
committer
David Kerkeslager
<kerkeslager@gmail.com>
Wed, 25 Aug 2010 01:24:24 +0000
(21:24 -0400)
.vimrc
patch
|
blob
|
history
diff --git
a/.vimrc
b/.vimrc
index
92fe292
..
e0ba2ef
100644
(file)
--- a/
.vimrc
+++ b/
.vimrc
@@
-18,6
+18,16
@@
set tabstop=4
set shiftwidth=4
set expandtab
+"Highlight bad spacing
+highlight BadSpacing term=standout ctermbg=cyan
+augroup Spacing
+ autocmd!
+ " Highlight tabulators and trailing spaces (nasty bastards)
+ autocmd BufNewFile,BufReadPre * match BadSpacing /\(\t\| *$\)/
+ " Only highlight trailing space in tab-filled formats
+ autocmd FileType help,make match BadSpacing / *$/
+augroup END
+
" Search as you type.
set incsearch