From: Simon Ruderich Date: Sun, 17 Jun 2012 13:42:17 +0000 (+0200) Subject: vimrc: Don't highlight overlong lines in diff mode. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=06a7d83ea680b38839c23ef6ec64325e28c40c9c;p=config%2Fdotfiles.git vimrc: Don't highlight overlong lines in diff mode. --- diff --git a/vimrc b/vimrc index a0afc90..e040414 100644 --- a/vimrc +++ b/vimrc @@ -521,9 +521,9 @@ if has('syntax') " Highlight lines longer than 78 characters. Thanks to Tony Mechelynck " from the Vim mailing list. It can easily be " disabled when necessary with :2match (in Vim >= 700). - if exists(':2match') + if !&diff && exists(':2match') 2match Todo /\%>78v./ - else + elseif !&diff match Todo /\%>78v./ endif