From 1d5914910af030ce43d68a29426bef69b1490e25 Mon Sep 17 00:00:00 2001 From: "jiangfriend@gmail.com" Date: Tue, 6 Mar 2012 23:12:55 +0800 Subject: [PATCH] always silent mapping --- 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 97217de..eea258f 100644 --- a/plugin/auto-pairs.vim +++ b/plugin/auto-pairs.vim @@ -285,6 +285,8 @@ function! AutoPairsForceInit() endif endfunction +" Always silent the command +inoremap AutoPairsReturn =AutoPairsReturn() " Global keys mapping " comptible with other plugin @@ -295,7 +297,7 @@ if g:AutoPairsMapCR endif if old_cr !~ 'AutoPairsReturn' - execute 'imap '.old_cr.'=AutoPairsReturn()' + execute 'imap '.old_cr.'AutoPairsReturn' end endif