Permalink
Browse files

Keep compatibility with Vim 7.2-

In agreement with http://stackoverflow.com/a/3765575 a small update
before update my VIM version
  • Loading branch information...
1 parent 0052890 commit cfaaeee6c4bccf9c134a91683602167bf28475a9 @moacirosa moacirosa committed Mar 24, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/gvimrc
View
@@ -7,7 +7,12 @@ au FileType c,vim,lisp filetype indent on
"" General settings
-set colorcolumn=80
+
+if exists('+colorcolumn')
+ set colorcolumn=80
+else
+ au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
+endif
syntax enable

0 comments on commit cfaaeee

Please sign in to comment.