Permalink
Browse files

Fixes #39, Backspace removes additional " (quote) on line below.

  • Loading branch information...
1 parent a86ea24 commit f13a60913f205a725a4acee8f395e326d71a9c55 @jiangmiao committed Mar 17, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 plugin/auto-pairs.vim
View
5 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 "\<BS>"
+ end
+
let space = matchstr(nline, '^\s*')
return "\<BS>\<DEL>". repeat("\<DEL>", len(space)+1)
end

0 comments on commit f13a609

Please sign in to comment.