Skip to content

利用imdisable实现Fcitx与VIM模式切换

2011 五月 29
by 荒野无灯

配置非常简单,在.vimrc中加入

1
2
autocmd! InsertLeave *  set imdisable
autocmd! InsertEnter *  set noimdisable

但这一方法的缺陷是只支持GVim,原因可能是 set imdisable 是设定窗口的 XIM 状态,GVim 就是它本身的窗口,可以直接被设置。而在虚拟终端中,这个属性由 Terminal 控制,vim 无从修改。

方法来自:
利用imdisable实现Fcitx与VIM模式切换

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:,欢迎点击这里捐赠以支持荒野无灯转播到腾讯微博 转播到腾讯微博

作者:荒野无灯
出处:Hacklog【Hacklog】

声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】

本文链接: http://ihacklog.com/?p=4517

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <q cite=""> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS