Last active
August 29, 2015 14:05
-
-
Save sgur/bf1bcedd0a41870f8159 to your computer and use it in GitHub Desktop.
Vimからfcitxの制御をする簡単な設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set iminsert=2 | |
set imsearch=2 | |
set imcmdline | |
set imactivatefunc=ImActivate | |
function! ImActivate(active) | |
if a:active | |
call system('fcitx-remote -o') | |
else | |
call system('fcitx-remote -c') | |
endif | |
endfunction | |
set imstatusfunc=ImStatus | |
function! ImStatus() | |
return system('fcitx-remote')[0] is# '2' | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment