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 =