From c176d137892f33945d3d4dd766fd21611e9b5ddf Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 24 Jun 2018 17:24:33 -0400 Subject: [PATCH] Lower 'synmaxcol' Closes https://github.com/tpope/vim-sensible/issues/142 --- plugin/sensible.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/sensible.vim b/plugin/sensible.vim index 2d0404d..b5659e4 100644 --- a/plugin/sensible.vim +++ b/plugin/sensible.vim @@ -35,6 +35,11 @@ if maparg('', 'n') ==# '' nnoremap :nohlsearch=has('diff')?'diffupdate':'' endif +if &synmaxcol == 3000 + " Lowering this improves performance in files with long lines. + set synmaxcol=500 +endif + set laststatus=2 set ruler set wildmenu