From 37e9487076d3fec7c26850ed50fbe33caae71665 Mon Sep 17 00:00:00 2001 From: jdhao Date: Thu, 12 Aug 2021 00:51:44 +0800 Subject: Use delimitMate instead of auto-pairs --- after/ftplugin/tex.vim | 5 ----- after/ftplugin/vim.vim | 8 -------- 2 files changed, 13 deletions(-) (limited to 'after/ftplugin') diff --git a/after/ftplugin/tex.vim b/after/ftplugin/tex.vim index 87281a6..868f4e6 100644 --- a/after/ftplugin/tex.vim +++ b/after/ftplugin/tex.vim @@ -1,6 +1 @@ -" Only use the following character pairs for tex file -if match(&runtimepath, 'auto-pairs') != -1 - let b:AutoPairs = AutoPairsDefine({'<' : '>'}) - let b:AutoPairs = {'(':')', '[':']', '{':'}', '<':'>'} -endif set textwidth=79 diff --git a/after/ftplugin/vim.vim b/after/ftplugin/vim.vim index 12f5c32..d0f33b9 100644 --- a/after/ftplugin/vim.vim +++ b/after/ftplugin/vim.vim @@ -17,11 +17,3 @@ set tabstop=2 " number of visual spaces per TAB set softtabstop=2 " number of spaces in tab when editing 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 match(&runtimepath, 'auto-pairs') != -1 - let b:AutoPairs = AutoPairsDefine({'<' : '>'}) - - " Do not use `"` for vim script since `"` is also used for comment - let b:AutoPairs = {'(':')', '[':']', '{':'}', "'":"'", '`':'`', '<':'>'} -endif -- cgit v1.2.3