From c1ea75e62b2f86595900a835cdccd28c77d74f48 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Thu, 25 Apr 2013 14:51:24 +0200 Subject: [PATCH] overlentgh highlight --- vimrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vimrc b/vimrc index 093d212..74a1a4e 100644 --- a/vimrc +++ b/vimrc @@ -76,6 +76,13 @@ autocmd FileType ruby set softtabstop=2 shiftwidth=2 autocmd FileType eruby set softtabstop=2 shiftwidth=2 autocmd FileType coffee set softtabstop=4 shiftwidth=4 +"notify line length > 80 +function HighlightOverLength() + highlight OverLength ctermbg=blue ctermfg=white guibg=#59292 + match OverLength /\%81v.\+/ +endfunction +autocmd FileType ruby call HighlightOverLength() + "swap/undo files set dir=~/.vim/tmp/swap//,/var/tmp//,/tmp//,. "set undodir=~/.vim/tmp/undo//,.