From 2d843076955b5978a9a6ce4ec1f647bdb1133275 Mon Sep 17 00:00:00 2001 From: jdhao Date: Sun, 27 Sep 2020 20:57:02 +0800 Subject: use match(), replace obscure regex-match notation --- after/ftplugin/tex.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'after/ftplugin/tex.vim') diff --git a/after/ftplugin/tex.vim b/after/ftplugin/tex.vim index 7de12d3..87281a6 100644 --- a/after/ftplugin/tex.vim +++ b/after/ftplugin/tex.vim @@ -1,5 +1,5 @@ " Only use the following character pairs for tex file -if &runtimepath =~? 'auto-pairs' +if match(&runtimepath, 'auto-pairs') != -1 let b:AutoPairs = AutoPairsDefine({'<' : '>'}) let b:AutoPairs = {'(':')', '[':']', '{':'}', '<':'>'} endif -- cgit v1.2.3