From ff597df8e82b25df31e38f07fabf3c847e2890c5 Mon Sep 17 00:00:00 2001 From: "jiangfriend@gmail.com" Date: Tue, 15 May 2012 11:09:40 +0800 Subject: [PATCH] silent the mapping forcely --- plugin/auto-pairs.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/auto-pairs.vim b/plugin/auto-pairs.vim index 536ff8f..934f5f3 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -352,7 +352,10 @@ function! AutoPairsForceInit() endif if old_cr !~ 'AutoPairsReturn' - execute 'imap '.old_cr.'AutoPairsReturn' + " generally speaking, should not be here because every plugin + " has there own silent solution. but for some plugin which wasn't double silent + " mapping, when maparg expand the map will lose the silent info, so always. + execute 'imap '.old_cr.'AutoPairsReturn' end endif call AutoPairsInit()