Prevent slowdowns related to excessively long lines by preventing syntax highlighting after 300th character

This commit is contained in:
Kevin MacMartin 2018-04-09 17:05:19 -04:00
parent ec41593643
commit c19f3a857c

View file

@ -62,6 +62,7 @@
"FILE: {{{ "FILE: {{{
filetype plugin indent on "enable filetype-based auto-indentation filetype plugin indent on "enable filetype-based auto-indentation
syntax on "enable syntax highlighting 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 formatoptions=roqnl12 "how automatic formatting is to be done
set diffopt=foldcolumn:0,filler "vimdiff default settings set diffopt=foldcolumn:0,filler "vimdiff default settings
set foldmethod=syntax foldcolumn=1 foldlevel=2 "fold layers 3 and deeper set foldmethod=syntax foldcolumn=1 foldlevel=2 "fold layers 3 and deeper