From c19f3a857ce0168988daa0bed94cb4e0638f7dd8 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 9 Apr 2018 17:05:19 -0400 Subject: [PATCH] Prevent slowdowns related to excessively long lines by preventing syntax highlighting after 300th character --- vim/config/settings.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/vim/config/settings.vim b/vim/config/settings.vim index 49c4068..91d2196 100644 --- a/vim/config/settings.vim +++ b/vim/config/settings.vim @@ -62,6 +62,7 @@ "FILE: {{{ filetype plugin indent on "enable filetype-based auto-indentation syntax on "enable syntax highlighting + set synmaxcol=300 "disable syntax highlighting on a given line after 300 characters set formatoptions=roqnl12 "how automatic formatting is to be done set diffopt=foldcolumn:0,filler "vimdiff default settings set foldmethod=syntax foldcolumn=1 foldlevel=2 "fold layers 3 and deeper