overlentgh highlight

This commit is contained in:
Loic Nageleisen 2013-04-25 14:51:24 +02:00
parent 9ba0c8a359
commit c1ea75e62b

7
vimrc
View file

@ -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//,.