Issue #19 new

Make ACP compatible with VimIM

Anonymous created an issue

Hi,

I am the author of VimIM, and I found quite a few users want to use both ACP and VimIM without conflict.

As of now, one user added a workaround, by modifying both scripts. I have included the modified part inside VimIM. I am wondering if you can include the patch for ACP, or you might have better idea?

Welcome to cross-post this discussion to http://groups.google.com/group/vimim

Thanks

vimim

PS: details

(1) one of discussion

http://groups.google.com/group/vimim/browse_thread/thread/9f9a4b00b3ebb56c/76922733575c0547?lnk=gst&q=FixAcp#76922733575c0547

(2) major patch added to the official version of VimIM

" ----------------------------------- function! s:vimim_stop_chinese_mode() " ----------------------------------- if exists('*Fixcp') sil!call FixAcp() endif endfunction

(3) major patch added to ACP:

autoload/acp.vim function FixAcp() " call s:unmapForMappingDriven() let s:keysMappingDriven = [ \ 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', \ 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', \ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', \ 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', \ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', \ '-', '_', '~', '^', '.', ',', ':', '!', '#', '=', '%', '$', '@', '<', '>', '/', '\', \ '<Space>', '<C-h>', '<BS>', ] for key in s:keysMappingDriven execute printf('inoremap <silent> %s %s<C-r>=<SID>feedPopup() <CR>', \ key, key) endfor endfunction

Comments (0)

  1. Log in to comment