silent the <CR> mapping forcely

This commit is contained in:
jiangfriend@gmail.com 2012-05-15 11:09:40 +08:00
parent ab206d7a5a
commit ff597df8e8

View File

@ -352,7 +352,10 @@ function! AutoPairsForceInit()
endif
if old_cr !~ 'AutoPairsReturn'
execute 'imap <buffer> <CR> '.old_cr.'<SID>AutoPairsReturn'
" generally speaking, <silent> 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 <silent> always.
execute 'imap <buffer> <silent> <CR> '.old_cr.'<SID>AutoPairsReturn'
end
endif
call AutoPairsInit()