mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
use match(), replace obscure regex-match notation
This commit is contained in:
parent
2a566f8d76
commit
2d84307695
@ -1,5 +1,5 @@
|
|||||||
" Only use the following character pairs for tex file
|
" Only use the following character pairs for tex file
|
||||||
if &runtimepath =~? 'auto-pairs'
|
if match(&runtimepath, 'auto-pairs') != -1
|
||||||
let b:AutoPairs = AutoPairsDefine({'<' : '>'})
|
let b:AutoPairs = AutoPairsDefine({'<' : '>'})
|
||||||
let b:AutoPairs = {'(':')', '[':']', '{':'}', '<':'>'}
|
let b:AutoPairs = {'(':')', '[':']', '{':'}', '<':'>'}
|
||||||
endif
|
endif
|
||||||
|
|||||||
@ -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
|
set expandtab " expand tab to spaces so that tabs are spaces
|
||||||
|
|
||||||
" Only define following variable if Auto-pairs plugin is used
|
" Only define following variable if Auto-pairs plugin is used
|
||||||
if &runtimepath =~? 'auto-pairs'
|
if match(&runtimepath, 'auto-pairs') != -1
|
||||||
let b:AutoPairs = AutoPairsDefine({'<' : '>'})
|
let b:AutoPairs = AutoPairsDefine({'<' : '>'})
|
||||||
|
|
||||||
" Do not use `"` for vim script since `"` is also used for comment
|
" Do not use `"` for vim script since `"` is also used for comment
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user