From 63b0c1b249b1fe0eeb85ec6be116bc7371915e08 Mon Sep 17 00:00:00 2001 From: Dave Pagurek Date: Sat, 16 Jul 2016 00:53:05 -0400 Subject: [PATCH] Fix double-escape being needed --- plugin/auto-pairs.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index 6c49487..200b2dd 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -383,7 +383,9 @@ function! AutoPairsReturn() " Use \ instead of \cl will cause the placeholder deleted " incorrect. because zz won't leave Normal mode. " Use \ is a bit wierd. the character before cursor need to be deleted. - let cmd = " \zz\cl" + " Adding a space, recentering, and deleting it interferes with default + " whitespace-removing behavior when exiting insert mode. + let cmd = "\zzcc" end " If equalprg has been set, then avoid call =