support `
This commit is contained in:
parent
9d554d08be
commit
6c3bcbca50
@ -20,7 +20,7 @@ if !exists('g:AutoPairsShortcuts')
|
|||||||
end
|
end
|
||||||
|
|
||||||
if !exists('g:AutoPairs')
|
if !exists('g:AutoPairs')
|
||||||
let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"'}
|
let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '`':'`'}
|
||||||
end
|
end
|
||||||
|
|
||||||
if !exists('g:AutoPairsParens')
|
if !exists('g:AutoPairsParens')
|
||||||
@ -84,7 +84,7 @@ function! AutoPairsInsert(key)
|
|||||||
return "\<Right>\<Right>"
|
return "\<Right>\<Right>"
|
||||||
end
|
end
|
||||||
|
|
||||||
" Skip the character if next
|
" Skip the character if closed pair is next character
|
||||||
if current_char == ''
|
if current_char == ''
|
||||||
let next_lineno = line('.')+1
|
let next_lineno = line('.')+1
|
||||||
let next_line = getline(nextnonblank(next_lineno))
|
let next_line = getline(nextnonblank(next_lineno))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user