[vim ] 中文輸入法自動切換 & 模式偵測問題
vimrc 中設定下面 2 行後
autocmd InsertEnter * set noimdisable
autocmd InsertLeave * set imdisable
windows 的 gvim 使用正常(normal 時會自動關閉輸入法)
linux 的 gvim 無法使用 還是得手動切換(gvim 7.2.445 + ibus 1.3.7-1)
help 文件中指出 imdisable 需要 multi_byte_ime (可是這個好像只有 win 有)
想請問有其它的方法可以達成類似的動作嗎?
另外一個問題
InsertEnter 和 InsertLeave 只有針對插入模式偵測
想請問 如何使它們在 replace 時
也可以開關輸入法
感謝回答
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.252.220.3
→
04/07 09:57, , 1F
04/07 09:57, 1F
→
04/09 16:34, , 2F
04/09 16:34, 2F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):