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/vim.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'after/ftplugin/vim.vim') diff --git a/after/ftplugin/vim.vim b/after/ftplugin/vim.vim index 4f92851..dcbb8e1 100644 --- a/after/ftplugin/vim.vim +++ b/after/ftplugin/vim.vim @@ -21,7 +21,7 @@ set shiftwidth=2 " number of spaces to use for autoindent set expandtab " expand tab to spaces so that tabs are spaces " Only define following variable if Auto-pairs plugin is used -if &runtimepath =~? 'auto-pairs' +if match(&runtimepath, 'auto-pairs') != -1 let b:AutoPairs = AutoPairsDefine({'<' : '>'}) " Do not use `"` for vim script since `"` is also used for comment -- cgit v1.2.3