ZSaberLv0 / ZFVimIM

vim输入法 / Vim Input Method by pure vim script, support: user word, dynamic word priority, cloud db files
204 stars 14 forks source link

可以再加入对韦大的[apc](https://github.com/skywind3000/vim-auto-popmenu)的切换支持 #24

Closed leoatchina closed 3 years ago

leoatchina commented 3 years ago

可以再加入对韦大的apc的切换支持,没测试但是我应该没有写错

function! s:apc_enable()
    if get(g:, 'ZFVimIM_autoDisable_apc', 1) && get(g:, 'apc_enable', 0) == 0
        ApcEnable
    endif
endfunction
function! s:apc_disable()
    if get(g:, 'ZFVimIM_autoDisable_apc', 1) && get(b:, 'apc_enable', 0) == 1
        ApcDisable
    endif
endfunction
call add(s:callback, ['s:apc_enable', 's:apc_disable'])
ZSaberLv0 commented 3 years ago

测了下似乎不用加也不会冲突

leoatchina commented 3 years ago

我看了下,应该是这样的情况,对大写字母的处理zfvim和apc有冲突, 当然我这里还用了韦大的vim-dict 比如下面,在启用apc的情况下, 我想打一个Z大,结果一按Z直接把字典补全内容输入了 而且我按C-w回退删词,再按Z还是一样的情况 image ApcDisable后正常,所以我认为还是要处理下。

leoatchina commented 3 years ago

谢谢修改!