3

VSCodeVim 自动切换 Fcitx5

 2 years ago
source link: https://cyrusyip.org/post/2021/12/24/vscodevim-auto-switch-fcitx5/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

VSCodeVim 自动切换 Fcitx5

2021-12-24 约 87 字 预计阅读 1 分钟 10 次阅读

$HOME/.config/Code/User/settings.json 加入以下内容:

{
  "vim.autoSwitchInputMethod.obtainIMCmd": "/usr/bin/fcitx5-remote",
  "vim.autoSwitchInputMethod.switchIMCmd": "/usr/bin/fcitx5-remote -t {im}",
  "vim.autoSwitchInputMethod.enable": true,
  "vim.autoSwitchInputMethod.defaultIM": "1",
}

或者按下 Ctrl + , 用图形界面设置对应选项。这样退出插入模式时会将 Fcitx5 切换为英文。


参考文章:在 VSCode 的 Vim keybinding 下自動切換 fcitx 模式 | by DanSnow | Medium


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK