From b7b2630d678eb6a1f79ef117c55a21ae9febe42d Mon Sep 17 00:00:00 2001 From: nirenjan Date: Thu, 9 May 2013 09:18:03 -0700 Subject: [PATCH] Fix long-lines plugin Either display colorcolumn, or syntax highlight Error, not both. --- vim/plugin/long-lines.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vim/plugin/long-lines.vim b/vim/plugin/long-lines.vim index 1e0c111..50736e0 100644 --- a/vim/plugin/long-lines.vim +++ b/vim/plugin/long-lines.vim @@ -21,6 +21,7 @@ if exists('+colorcolumn') set colorcolumn=81 +else + autocmd BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1) endif -autocmd BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)