aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Herlédan <sylvain.herledan@hrafnagud.info>2026-03-19 15:05:29 +0100
committerSylvain Herlédan <sylvain.herledan@hrafnagud.info>2026-03-19 15:05:29 +0100
commit6538c06d14bf33933d8e91ebe4b167001c3614bc (patch)
treea042799b36224b9dbc43cdb5cd2ab22277ce811a
parent7eb6e5ecb3e13ad8ad00bfb42729bdedbad30313 (diff)
downloaddotfiles-master.tar.gz
dotfiles-master.tar.bz2
dotfiles-master.zip
Increase limit on line slice size for syntax highlighting in vim.HEADmaster
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.
-rw-r--r--vimrc4
1 files changed, 2 insertions, 2 deletions
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 =