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