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

[FR] 禁止在Normal mode/visual mode输入中文,对各个mode分别管理输入法状态 #30

Open
glyh opened this issue Feb 10, 2022 · 2 comments

Comments

@glyh
Copy link

glyh commented Feb 10, 2022

有些情况下,用户可能会不小心在normal mode/visual line mode/ visual block mode切入中文,希望此插件可以禁止这种情况。
注:似乎本插件只区分了inserstion mode和非insertion mode,但是事实上个人感觉应该分为一下两类:
不可能输入中文的:
Normal, Visual 这两个mode中应该禁止中文(可以作为一个用户选项)
Select, Insert, Repleace, Command-line,这几个mode中有可能会输入中文,应该分别保存他们的输入法状态(比如当insert mode是打开输入法的时候,用户大概率期望command line mode没有打开输入法)

@lilydjwg
Copy link
Owner

normal 和 visual 模式我都有可能需要输入中文(r/f/t)。

@lilydjwg
Copy link
Owner

要禁用输入法,你可以尝试调整 im 开头的那几个选项。

分别保存状态有点麻烦,我懒得实现……我大部分情况只在 insert 模式输入中文,select、replace 模式基本不使用,cmdline 和 search 默认英文,需要输入中文的时候手动开关的。你若是想,也可以实现了然后发个 pr 过来。

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

2 participants