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

sublime vintage mode 按住一个键(比如 j)不会重复的问题 #14

Open
xhlwill opened this issue Mar 26, 2017 · 5 comments
Open

Comments

@xhlwill
Copy link
Owner

xhlwill commented Mar 26, 2017

mac 用 sublime 时发现长按j不会一直往下走,发现这是 OS X 系统问题,确切的说是 Lion 及以上系统的 feature 🤦‍♂️

Holding down a key like j does not repeat the command

This is a feature of OS X Lion and newer versions.
To make a key repeat a command when holding it down, run this once at the terminal:

defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false

我用的是 sublimetext 3,如果用 sublimetext 2 的话将上面命令中的 3 改成 2 即可(执行命令后请重启sublime)。

有趣的是 sublimetext 3 官方文档写的一直是 com.sublimetext.2,一定是偷懒把 sublimetext 2 的直接拷贝过来了 🤣

顺便提一下,插件 Vintageous终止开发,作者转向 Sublime Six(http://www.sublimesix.com).


Update: Atom 的 vim 插件对于长按似乎已经帮我们做了额外处理,可以 repeat the command,例如下图光标一开始在开头的h,长按l,光标移动到了行尾的;……不过同时也会触发输入法自带的长按效果

image

@xhlwill xhlwill changed the title sublime vintage 按住一个键(比如 j)不会重复的问题 sublime vintage mode 按住一个键(比如 j)不会重复的问题 Apr 5, 2017
@CuihuaGu
Copy link

感谢,解决了我的问题

@xhlwill xhlwill added the vim label Dec 14, 2017
@tutulove1234
Copy link

Sublime Six 目前怎么用,还不知道

@xhlwill
Copy link
Owner Author

xhlwill commented Mar 15, 2018

@tutulove1234 使用方法和vim一样,在sublime text里安装插件 six 即可

@tutulove1234
Copy link

为什么还存在 按 j 不连续向下呢

@xhlwill
Copy link
Owner Author

xhlwill commented Mar 19, 2018

@tutulove1234 命令 defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false 设置完请重启sublimetext,如果不行重启电脑

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

No branches or pull requests

3 participants