]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Highlight text longer then 78 characters per line.
authorSimon Ruderich <simon@ruderich.org>
Tue, 17 Feb 2009 10:50:17 +0000 (11:50 +0100)
committerSimon Ruderich <simon@ruderich.org>
Tue, 17 Feb 2009 10:50:17 +0000 (11:50 +0100)
Thanks to Tony Mechelynck.

vimrc

diff --git a/vimrc b/vimrc
index 631c84405a266078608de28c8243b7b2c124bc88..985042c13bc666a172f8c2e67400062ef55562f2 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -147,6 +147,14 @@ endif
 " Activate syntax coloring.
 syntax enable
 
+" Highlight text longer then 78 characters. Thanks to Tony Mechelynck
+" <antoine.mechelynck@gmail.com> from the Vim mailing list.
+if v:version >= 700
+    2match Todo /\%>78v./
+else
+    match Todo /\%>78v./
+endif
+
 
 " PLUGIN SETTINGS