always silent mapping

This commit is contained in:
jiangfriend@gmail.com 2012-03-06 23:12:55 +08:00
parent fac14bec63
commit 1d5914910a

View File

@ -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