Giter VIP home page Giter VIP logo

Comments (10)

Jackiexiao avatar Jackiexiao commented on August 20, 2024 1

@daipeihust 找到一个曲线救国的方法,可以让Esc回到normal模式后切换回中文(搜狗)输入法的英文状态

  "vim.autoSwitchInputMethod.enable": true,
  "vim.autoSwitchInputMethod.defaultIM": "1033",
  "vim.autoSwitchInputMethod.obtainIMCmd": "C:\\im-select\\im-select.exe",
  "vim.autoSwitchInputMethod.switchIMCmd": "C:\\im-select\\im-select.exe {im} && C:\\im-select\\im-select.exe 2052",

增加一个&& C:\\im-select\\im-select.exe 2052,2052是搜狗输入法的值。

首先要设置搜狗输入法的默认状态为英文(其他输入法类似),然后按上面修改配置,回到normal后切换2次输入法(1次到美式英文,1次回到搜狗),在我电脑上切换比较顺畅。
image

from im-select.

daipeihust avatar daipeihust commented on August 20, 2024

不能切换输入法的中英状态还挺麻烦的,不过能够实现 ctrl + P 时切换到中文输入法吗? 我有一些笔记文件名是中文的.

确实是做不到切换输入法的中英文状态,你可以自己探索一下替代方案

from im-select.

daipeihust avatar daipeihust commented on August 20, 2024
```json
"vim.insertModeKeyBindings": [
  {
    "before": ["j", "j"],
    "after": ["<Esc>", "<Shift>"]
  }
]

我用的搜狗,默认英文输入状态,不用安装这个脚本。原理是 j + j 后触发 esc 然后再触发 shift 恢复输入法初始状态,希望对你有帮助。

厉害了

from im-select.

Jackiexiao avatar Jackiexiao commented on August 20, 2024

我修改了这个vim的按键映射, 但不能切换中英文(shift键没有起到作用, 不知道为什么)

from im-select.

daipeihust avatar daipeihust commented on August 20, 2024

我修改了这个vim的按键映射, 但不能切换中英文(shift键没有起到作用, 不知道为什么)

这个你要自己研究一下原因了

from im-select.

daipeihust avatar daipeihust commented on August 20, 2024

可以 很棒

from im-select.

Jackiexiao avatar Jackiexiao commented on August 20, 2024

我擦秒回

from im-select.

daipeihust avatar daipeihust commented on August 20, 2024

hhh 有邮件通知

from im-select.

Jackiexiao avatar Jackiexiao commented on August 20, 2024

原来如此,我也设置一下

from im-select.

NingerJohn avatar NingerJohn commented on August 20, 2024

不知道为啥,在vscode vim模式下,不行。

from im-select.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.