1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Use delimitMate instead of auto-pairs

This commit is contained in:
jdhao
2021-08-12 00:51:44 +08:00
parent 082a8ab6b5
commit 37e9487076
4 changed files with 2 additions and 15 deletions

View File

@@ -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

View File

@@ -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