Don't close single quotes when inside a word

This commit is contained in:
Cam Thompson 2011-12-22 09:23:48 -05:00
parent 583d0a4196
commit e62479a542

View File

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