diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index 5e867a4..97217de 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -149,6 +149,12 @@ function! AutoPairsDelete() if match(line,'^\s*'.close, col('.')-1) != -1 let space = matchstr(line, '^\s*', col('.')-1) return "\". repeat("\", len(space)+1) + else + let nline = getline(line('.')+1) + if nline =~ '^\s*'.close + let space = matchstr(nline, '^\s*') + return "\\". repeat("\", len(space)+1) + end end end