aboutsummaryrefslogtreecommitdiff
path: root/after/ftplugin/vim.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/ftplugin/vim.vim')
-rw-r--r--after/ftplugin/vim.vim2
1 files changed, 1 insertions, 1 deletions
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