Raimondi / delimitMate

Vim plugin, provides insert mode auto-completion for quotes, parens, brackets, etc.
http://www.vim.org/scripts/script.php?script_id=2754
1.98k stars 116 forks source link

Handle escaped quotes #286

Open mb64 opened 4 years ago

mb64 commented 4 years ago

Currently, if I type (in insert mode) "some text, delimitMate helpfully makes it "some text".

However, if I type "text \" with an escaped quote, delimitMate sees the quote, doesn't recognize the backslash, and fails to keep the ending quote: I need to type it myself.

It would be great if delimitMate handled escaped quotes. An appropriate rule might be, when a quote is typed in a string before an existing quote mark, insert " iff there are an odd number of backslashes.