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()