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,6 +110,9 @@ function! AutoPairsInsert(key)
return "\<Right>"
end
if a:key == "'" && prev_char =~ '\v\w'
return a:key
else
return open.close."\<Left>"
endfunction