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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user