.vimrc: fix slowness with typescript with set re=0
authorColin P. McCabe <cmccabe@apache.org>
Thu, 28 Aug 2025 23:09:34 +0000 (16:09 -0700)
committerColin P. McCabe <cmccabe@apache.org>
Thu, 28 Aug 2025 23:09:34 +0000 (16:09 -0700)
.vimrc

diff --git a/.vimrc b/.vimrc
index ce37af6..cd9f594 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -19,13 +19,18 @@ set nowrapscan
 set ignorecase
 set smartcase
 
+"*************** syntax highlighting ***************
+syntax on
+
+" Use the new regular expression engine to avoid slowness with TypeScript.
+set re=0
+
 "*************** formatting ***************
 :filetype plugin on
 :filetype indent on
 set linebreak
 set ai
 set ruler
-syntax on
 highlight Comment ctermfg=darkcyan
 highlight Constant ctermfg=red
 highlight Search cterm=reverse