分享

mac sublime text vintageous 长按j 不能连续移动光标

 望穿墙 2018-08-01

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.).


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

image

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多