overlength 80

This commit is contained in:
Loic Nageleisen 2015-10-13 15:50:49 +02:00
parent b4e61157a0
commit dd5e2a9e0f

10
vimrc
View file

@ -86,11 +86,11 @@ function HighlightOverLength(len)
highlight OverLength ctermbg=blue ctermfg=white guibg=#59292 highlight OverLength ctermbg=blue ctermfg=white guibg=#59292
execute 'match OverLength /\%'.(a:len+1).'v.\+/' execute 'match OverLength /\%'.(a:len+1).'v.\+/'
endfunction endfunction
autocmd FileType vim call HighlightOverLength(79) autocmd FileType vim call HighlightOverLength(80)
autocmd FileType ruby call HighlightOverLength(79) autocmd FileType ruby call HighlightOverLength(80)
autocmd FileType slim call HighlightOverLength(79) autocmd FileType slim call HighlightOverLength(80)
autocmd FileType python call HighlightOverLength(79) autocmd FileType python call HighlightOverLength(80)
autocmd FileType mdown call HighlightOverLength(79) autocmd FileType mdown call HighlightOverLength(80)
"swap/undo files "swap/undo files
set dir=~/.vim/tmp/swap//,/var/tmp//,/tmp//,. set dir=~/.vim/tmp/swap//,/var/tmp//,/tmp//,.