dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 8e1e182da0f4ce52559958267e5fe2b05d979e0b
parent ef9b9a641c609862bdb3aa2e68f0e20ecbe51593
Author: Chris Bracken <chris@bracken.jp>
Date:   Sat,  6 Jul 2013 00:47:20 -0700

Use Spacehi instead of manually highlighting trailing whitespace

Diffstat:
M.vim/.vimrc | 15+++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/.vim/.vimrc b/.vim/.vimrc @@ -54,6 +54,11 @@ set sw=2 set softtabstop=2 set expandtab +" Whitespace highlighting +let g:spacehi_spacecolor="ctermbg=red guibg=red" +let g:spacehi_tabcolor="ctermbg=red guibg=red" +let g:spacehi_nbspcolor="ctermbg=red guibg=red" + " Colorscheme and syntax highlighting if &t_Co > 2 || has("gui_running") syntax on @@ -67,16 +72,10 @@ if &t_Co > 2 || has("gui_running") endif if has("autocmd") - " Highlight trailing whitespace - highlight ExtraWhitespace ctermbg=red guibg=red - au ColorScheme * highlight ExtraWhitespace guibg=red - au BufEnter,InsertLeave * match ExtraWhitespace /\s\+$/ - au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ - " Highlight over-length lines highlight OverLength ctermbg=red ctermfg=white guibg=#592929 - au BufEnter,InsertLeave * 2match OverLength /\%81v.\+/ - au BufEnter,InsertLeave *.java 2match OverLength /\%101v.\+/ + au BufEnter,InsertLeave * match OverLength /\%81v.\+/ + au BufEnter,InsertLeave *.java match OverLength /\%101v.\+/ endif endif