Open iAoe444 opened 4 years ago
我用的是fcitx+manjaro+vim,用这个脚本可以简单的在退出插入模式的时候切换输入法,放在,vimrc就行,需要注意的是,需要在输入法里面多配一个英语输入法的方案
function! Fcitx2en() let l:a = system("fcitx-remote -o") endfunction set timeoutlen=150 autocmd InsertLeave * call Fcitx2en()
让vim拥有自动切换输入法的能力