5 > please add the follow lines into your ~/.vimrc file, and then restart X.
9 let s:input_status = system("fcitx-remote")
10 if s:input_status == 2
11 let g:input_toggle = 1
12 let l:a = system("fcitx-remote -c")
17 let s:input_status = system("fcitx-remote")
18 if s:input_status != 2 && g:input_toggle == 1
19 let l:a = system("fcitx-remote -o")
20 let g:input_toggle = 0
25 autocmd! InsertLeave * call Fcitx2en()
26 autocmd! InsertEnter * call Fcitx2zh()
33 > Don't forget to remove the follow lines from your ~/.vimrc file.
36 autocmd! InsertLeave * call Fcitx2en()
37 autocmd! InsertEnter * call Fcitx2zh()