diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index 3261f84..6d7caaf 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -99,7 +99,8 @@ function! AutoPairsDelete() if has_key(g:AutoPairs, prev_char) let close = g:AutoPairs[prev_char] if match(line,'^\s*'.close, col('.')-1) != -1 - return "\\cf".close + let space = matchstr(line, '^\s*', col('.')-1) + return "\". repeat("\", len(space)+1) end end