Permalink
Browse files

always silent mapping

  • Loading branch information...
1 parent fac14be commit 1d5914910af030ce43d68a29426bef69b1490e25 @jiangmiao committed Mar 6, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 plugin/auto-pairs.vim
View
@@ -285,6 +285,8 @@ function! AutoPairsForceInit()
endif
endfunction
+" Always silent the command
+inoremap <silent> <SID>AutoPairsReturn <C-R>=AutoPairsReturn()<CR>
" Global keys mapping
" comptible with other plugin
@@ -295,7 +297,7 @@ if g:AutoPairsMapCR
endif
if old_cr !~ 'AutoPairsReturn'
- execute 'imap <silent> <CR> '.old_cr.'<C-R>=AutoPairsReturn()<CR>'
+ execute 'imap <silent> <CR> '.old_cr.'<SID>AutoPairsReturn'
end
endif

0 comments on commit 1d59149

Please sign in to comment.