vim

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

commit f9e50e8cc1260c88dc56bc59b3959d8b0c7ff9c9
parent 5215ed632fbfcc91d899730578e46ccc11b41dd4
Author: Chris Bracken <chris@bracken.jp>
Date:   Wed, 13 Feb 2013 10:49:05 -0800

Added highlighting for over-length text.

Diffstat:
M.vimrc | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.vimrc b/.vimrc @@ -41,13 +41,18 @@ if &t_Co > 2 || has("gui_running") set guifont=Monospace\ 11 endif - " Highlight trailing whitespace if has("autocmd") + " 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\+$/ + + " Highlight over-length lines + highlight OverLength ctermbg=red ctermfg=white guibg=#592929 + au BufEnter,InsertLeave * match OverLength /\%81v.\+/ + au BufEnter,InsertLeave *.java match OverLength /\%101v.\+/ endif endif