dotfiles

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

commit 52f321a7d68ca918ce48df87b277f5d93ea06791
parent b8cb324473cdacea72104ed97249ffdbdb7f4c81
Author: Chris Bracken <cbracken@google.com>
Date:   Wed, 28 Mar 2012 13:21:26 -0700

Added autocmd check for highlighting trailing whitespace.

Diffstat:
M.vim/.vimrc | 14+++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/.vim/.vimrc b/.vim/.vimrc @@ -38,13 +38,17 @@ if &t_Co > 2 || has("gui_running") set guifont=Menlo:h12 " Highlight trailing whitespace - highlight ExtraWhitespace ctermbg=red guibg=red - au ColorScheme * highlight ExtraWhitespace guibg=red - au BufEnter * match ExtraWhitespace /\s\+$/ - au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ - au InsertLeave * match ExtraWhiteSpace /\s\+$/ + if has("autocmd") + highlight ExtraWhitespace ctermbg=red guibg=red + au ColorScheme * highlight ExtraWhitespace guibg=red + au BufEnter * match ExtraWhitespace /\s\+$/ + au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/ + au InsertLeave * match ExtraWhiteSpace /\s\+$/ + endif endif +filetype plugin on + if has("autocmd") au BufNewFile,BufRead *.scala set filetype=scala endif