Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit f13a60913f205a725a4acee8f395e326d71a9c55 1 parent a86ea24
Miao Jiang authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 plugin/auto-pairs.vim
5 plugin/auto-pairs.vim
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.