Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有关vimvscode的vim风格和emac风格的切换,分词选中等问题的建议 #57

Open
Square-funny opened this issue Jun 19, 2024 · 0 comments

Comments

@Square-funny
Copy link

我在使用vscode的中文分词功能来支持Latex的中文编写,同时我还在使用Obsidian提供的中文分词插件来编辑markdown文档,在Obsidian中文分词工具当中同样是以来jieba分词方法来实现中文分词,但是它所支持的是vim逻辑的移动方式,而目前在vscode当中鲜有这方面的中文分词工具,感谢作者。

希望能够在vscode分词的插件当中添加选项,可以实现emac和vim风格的移动方式,目前我使用组合命令的形式能够对normal模式下的移动进行改动,从而实现一致的移动效果:

  "vim.normalModeKeyBindings": [
    {
      "before": ["w"],
      "commands": ["jieba.forwardWord","jieba.forwardWord","jieba.backwardWord"],
    },
    {
      "before": ["b"],
      "commands": ["jieba.backwardWord"]
    },
    {
      "before": ["d", "w"],
      "commands": ["jieba.killWord"]
    },
    {
      "before": ["d", "b"],
      "commands": ["jieba.backwardKillWord"]
    },
  ],

但是依然有以下的几个功能还是缺失的:

  1. 在Visual模式当中,依然无法实现w和e对中文的分词跳转
  2. 在使用光标点选的时候,无法选中分词之后的单词
  3. 有关emac和vim的风格切换太过麻烦

目前在vscodevim当中,对中文分词的支持基于jieba 的只有作者的这一个插件,但是目前大部分的Latex编辑推荐当中,以vscode作为IDE的攻略占主流,如果想要尝试vim模式,那么中文分词是绕不开的一个需求,感谢作者的贡献!期待该插件的进一步完善~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant