Don't close single quotes when inside a word
This commit is contained in:
parent
583d0a4196
commit
e62479a542
@ -110,7 +110,10 @@ function! AutoPairsInsert(key)
|
||||
return "\<Right>"
|
||||
end
|
||||
|
||||
return open.close."\<Left>"
|
||||
if a:key == "'" && prev_char =~ '\v\w'
|
||||
return a:key
|
||||
else
|
||||
return open.close."\<Left>"
|
||||
endfunction
|
||||
|
||||
function! AutoPairsDelete()
|
||||
|
Loading…
Reference in New Issue
Block a user