From 6538c06d14bf33933d8e91ebe4b167001c3614bc Mon Sep 17 00:00:00 2001 From: Sylvain Herlédan Date: Thu, 19 Mar 2026 15:05:29 +0100 Subject: Increase limit on line slice size for syntax highlighting in vim. The limit is there to prevent performance issues with files that contain very long lines, but will result in a mess if it is reached while a highlight color was in use. So setting the limit too low is not advised either. --- vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index efba63c..0fd5bf1 100644 --- a/vimrc +++ b/vimrc @@ -30,8 +30,8 @@ call dein#end() filetype plugin indent on syntax enable -" Fix performance issue with long lines -set synmaxcol=200 +" Limit size of line slice analyzed for syntax highlighting to save performance +set synmaxcol=500 " Fix splits after resize events autocmd VimResized * wincmd = -- cgit v1.3