jiangmiao / auto-pairs

Vim plugin, insert or delete brackets, parens, quotes in pair
http://www.vim.org/scripts/script.php?script_id=3599
4.09k stars 373 forks source link

Bug with double quotes (windows) #354

Closed OrionGonzalez closed 1 year ago

OrionGonzalez commented 1 year ago

It works fine for all others, but when I try it with " it has unexpected behaviour: The first time you press " it only makes one, the second it makes two:

https://user-images.githubusercontent.com/107467569/191941547-beff70bf-6231-4fdc-91f7-439817c54878.mp4

LunarWatcher commented 1 year ago

" is special because it's also the comment character in Vim. My fork has an expanded regex for checking comment balancing, but it isn't easy. Legacy Vimscript is a royal pain to do sane " balancing with