怪物奇妙物语

宇宙无敌超级美少男的怪物奇妙物语

首页 新随笔 联系 管理
  819 随笔 :: 0 文章 :: 2 评论 :: 16万 阅读

vscode vim 插件官方说明 Input Method

Disable input method when exiting Insert Mode.

SettingDescription
vim.autoSwitchInputMethod.enableBoolean denoting whether autoSwitchInputMethod is on/off.
vim.autoSwitchInputMethod.defaultIMDefault input method.
vim.autoSwitchInputMethod.obtainIMCmdThe full path to command to retrieve the current input method key.
vim.autoSwitchInputMethod.switchIMCmdThe full path to command to switch input method, with {im} a placeholder for input method key.

Any third-party program can be used to switch input methods. The following will walkthrough the configuration using im-select.

  1. Install im-select (see installation guide)

  2. Find your default input method key

  • Mac:
Switch your input method to English, and run the following in your terminal: `/<path-to-im-select-installation>/im-select` to output your default input method. The table below lists the common English key layouts for MacOS.
KeyDescription
com.apple.keylayout.USU.S.
com.apple.keylayout.ABCABC
com.apple.keylayout.BritishBritish
com.apple.keylayout.IrishIrish
com.apple.keylayout.AustralianAustralian
com.apple.keylayout.DvorakDvorak
com.apple.keylayout.ColemakColemak
  • Windows:

Refer to the im-select guide on how to discover your input method key. Generally, if your keyboard layout is en_US the input method key is 1033 (the locale ID of en_US). You can also find your locale ID from this page, where the LCID Decimal column is the locale ID.

  1. Configure vim.autoSwitchInputMethod.
  • MacOS:

Given the input method key of com.apple.keylayout.US and im-select located at /usr/local/bin. The configuration is:

"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "com.apple.keylayout.US",
"vim.autoSwitchInputMethod.obtainIMCmd": "/usr/local/bin/im-select",
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/local/bin/im-select {im}"
  • Windows:

Given the input method key of 1033 (en_US) and im-select.exe located at D:/bin. The configuration is:

"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "1033",
"vim.autoSwitchInputMethod.obtainIMCmd": "D:\\bin\\im-select.exe",
"vim.autoSwitchInputMethod.switchIMCmd": "D:\\bin\\im-select.exe {im}"

The {im} argument above is a command-line option that will be passed to im-select denoting the input method to switch to. If using an alternative program to switch input methods, you should add a similar option to the configuration. For example, if the program's usage is my-program -s imKey to switch input method, the vim.autoSwitchInputMethod.switchIMCmd should be /path/to/my-program -s {im}.

vscode vim

img

obsidian的配置

img

posted on   超级无敌美少男战士  阅读(124)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战
历史上的今天:
2022-02-11 jQuery如何进行二次查找
2022-02-11 如何查看一个网站有没有使用jQuery
2022-02-11 开发依赖 生产依赖 区别
2022-02-11 JavaScript 数组中的常用方法 数组方法
2022-02-11 ngrok 实现内网穿透
2022-02-11 symbol作为key时的获取与遍历
2022-02-11 如何创建两个相同的symbol
点击右上角即可分享
微信分享提示