From f13a60913f205a725a4acee8f395e326d71a9c55 Mon Sep 17 00:00:00 2001 From: Miao Jiang Date: Sun, 17 Mar 2013 11:58:28 +0800 Subject: [PATCH] Fixes #39, Backspace removes additional " (quote) on line below. --- plugin/auto-pairs.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index af44ff3..9802e18 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -238,6 +238,11 @@ function! AutoPairsDelete() " Delete (|__\n___) let nline = getline(line('.')+1) if nline =~ '^\s*'.close + if &filetype == 'vim' && prev_char == '"' + " Keep next line's comment + return "\" + end + let space = matchstr(nline, '^\s*') return "\\". repeat("\", len(space)+1) end