vim

vim config files
git clone https://git.bracken.jp/vim.git
Log | Files | Refs | LICENSE

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

Added autocmd check for highlighting trailing whitespace.

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

diff --git a/.vimrc b/.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