Fcitx for Vim

今天在 AUR 上看到了这个有趣的东东,据介绍,它能够根据 Vim 模式的变化(如正常模式/插入模式)来自动更改 Fcitx 的输入法状态。这个经过打过补丁的 Fcitx 特别版似乎更能适应 Vim 用户的需要。

Fcitx

感兴趣的朋友不妨一试,相关源码和补丁可从这里获取

Read More:

23 Comments

  1. 1 9shell Commented @ 2009-10-17 12:45Reply to this comment

    不错的改建,中文使用vim确实很痛苦!

  2. 2 wangdu2002 Commented @ 2009-10-17 13:19Reply to this comment

    这个一定要支持。

  3. 3 Iven Commented @ 2009-10-17 13:36Reply to this comment

    要是有 ibus for vim 就好了……

  4. 4 GunsNRose Commented @ 2009-10-17 13:58Reply to this comment

    aur/fcitx4vim 3.6.1-5 (1) Fcitx for vim, auto change ime state when vim mode(normal/input) change 弄来试试看

  5. 5 debianwin Commented @ 2009-10-17 14:49Reply to this comment

    确实看到代码,能说明一下怎么打这个补丁?

  6. 6 didu Commented @ 2009-10-17 15:31Reply to this comment

    何不与yuking商量一下 看看能不能进入upstream

  7. 7 yymailb Commented @ 2009-10-17 16:13Reply to this comment

    今天正好看到一个更有趣的VIM输入法,很好很BT:

    http://maxiangjiang.googlepages.com/vimim.html

  8. 8 ginkgo Commented @ 2009-10-17 16:25Reply to this comment

    vim也要相应的添加配置。大家来测试一下。

  9. 9 huang Commented @ 2009-10-17 16:40Reply to this comment

    似乎没多大用处吧 把fcitx中英文切换设为Ctl键多方便啊 需要切换时按一下就行了

  10. 10 daze Commented @ 2009-10-17 16:50Reply to this comment

    “中文使用 Vim 痛苦”? 试试 vim 的扩展插件 vimIM 或者 ywvim 吧,vim 自己的输入法框架,那叫一个惊艳!

  11. 11 daze Commented @ 2009-10-17 17:00Reply to this comment

    努力值得肯定,但有了 vimIM,任何操作系统的输入法在 vim 中也都不需要了!

  12. 12 vim Commented @ 2009-10-17 17:07Reply to this comment

    用archlinux的同学,直接yaourt fcitx4vim,然后按提示修改~/.vimrc文件即可。 用其它发行版的同学这样做: 1.下载fcitx-3.6.1.bar.bz2文件,并打上ImeRemote.patch来编译生成fcitx。 http://aur.archlinux.org/packages/fcitx4vim/fcitx4vim/ImeRemote.patch 2.单独编译http://aur.archlinux.org/packages/fcitx4vim/fcitx4vim/client-test.c文件,生成fcitx-remote, 放在/usr/bin目录中。 3. 修改~/.vimrc文件,实现自动记忆并切换fcitx输入法,加入以下配置:

    let w:inputtoggle = 0 function Fcitx2en() let s:inputstatus = system("fcitx-remote") if s:inputstatus == 2 let w:inputtoggle = 1 let l:a = system("fcitx-remote -c") endif endfunction

    function Fcitx2zh() let s:inputstatus = system("fcitx-remote") if s:inputstatus != 2 && w:inputtoggle == 1 let l:a = system("fcitx-remote -o") let w:inputtoggle = 0 endif endfunction

    set timeoutlen=150 autocmd! InsertLeave * call Fcitx2en() autocmd! InsertEnter * call Fcitx2zh()

  13. 13 聚焦深空 Commented @ 2009-10-17 19:24Reply to this comment

    vim 本身对 im 支持已经较好, set iminsert=0 set imsearch=0 已经能满足俺需要。

    请参考 vim 自带帮助文档: ":help iminsert" ":help imsearch" ":help imcmdline" ":help CursorIM"

    这篇文章也可参考: http://allo.ave7.net/Vim_Config

    vimim 插件也很好。

  14. 14 syrano Commented @ 2009-10-17 20:54Reply to this comment

    很好用

  15. 15 BackFire Commented @ 2009-10-17 21:32Reply to this comment

    中英文切换能设置两个快捷键就好了

  16. 16 zmd56 Commented @ 2009-10-18 0:22Reply to this comment

    呵呵,这也行,一直是Ctrl+space调用fcitx输入中文的

  17. 17 xhh Commented @ 2009-10-18 10:25Reply to this comment

    @daze: VimIM 不错, 一直在用 :)

  18. 18 ginkgo Commented @ 2009-10-19 12:28Reply to this comment

    Yuking 开始在svn更新这个了。

  19. 19 jazzi Commented @ 2009-10-19 16:34Reply to this comment

    有个问题请教: fcitx装好后,修改了配置文件中的字体为系统中的wqy。 现在fcitx panel有看到,但却是灰色的,呼不出输入法,汉字打不出来。 请问怎么回事?谢谢。 》》补充:.bashrc中已设置了MODULES等参数。

  20. 20 自由建客 Commented @ 2009-10-19 19:02Reply to this comment

    等好久了!立马上!

  21. 21 yei Commented @ 2009-10-21 21:18Reply to this comment

    暂时就不更新了,等Yuking加进去。我比较懒,反正在VIM下也输不了几句中文 :)

  22. 22 dongyuwei Commented @ 2009-10-22 14:45Reply to this comment

    vimim is great!

  23. 23 aleln Commented @ 2009-12-30 11:34Reply to this comment

    vimim是挺帅, 就是wiki看的云里雾里的~~