VSCodeVim 自动切换 Fcitx5

在 $HOME/.config/Code/User/settings.json 加入以下内容: 1 2 3 4 5 6 { "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

修复变慢的 Arch Linux(起因:auto-cpufreq)

最近 Arch Linux 用起来有点慢,有时候桌面会卡住一两秒。我用 auto-cpufreq(1.7.2) 调节 CPU 频率,该不会是它出问题了吧。先看看数据: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 ❯ sudo auto-cpufreq --stats Note: You can

修复 BitLocker 错误:The system cannot find the file specified

用 BitLocker 给 Windows 10 加密时出现了错误信息:The system cannot find the file specified。这个提示信息简直是废话嘛,为什么不告诉我哪个文件有问题……提示信息还附上了 Win10 安装要求,一样是没用…… 谷歌之后找到了解决办法:把 C:\Windows\System32\Recovery\ReAgent.xml 重命