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,光标移动到了行尾的;……不过同时也会触发输入法自带的长按效果
联系客服