Mac如何解决vi vim光标移动慢问题
2017-05-28 20:55
330 查看
作为一个vi党,从Ubuntu切换到mac时一直觉得觉得vim的光标移动速度好慢。经过查询后发现是因为mac键盘做了优化,键盘的按键开始重复键是400毫秒,按键重复时间间隔是300毫秒,就是说一秒钟hjkl移动速度只能移动三下光标,移动速度不慢才怪。由于mac系统设置的键盘重复延迟时间和按键重复时间间隔有限,满足不了需求。百度后发现有个叫Karabiner的神器,专门处理键盘映射,键盘灵敏度的工具,非常实用。
Karabiner的github地址为
https://github.com/tekezo/Karabiner
步骤一、生成安装包
有以下两种方式获得Karabiner.dmg安装包
方法一、直接下载最新版本的稳定源
https://pqrs.org/osx/karabiner/
可以下载最新版本
方法二、下载源码并编译
1. 下载仓库
$ git clone https://github.com/tekezo/Karabiner.git
2. 进入源码目录
$ cd Karabiner
3. 查看tag标志
lucky@lucky-macbook:Karabiner$ git tag
version_10.0.0
version_10.1.0
version_10.10.0
version_10.11.0
version_10.12.0
version_10.13.0
version_10.14.0
version_10.15.0
version_10.16.0
version_10.17.0
version_10.18.0
version_10.19.0
version_10.2.0
version_10.20.0
version_10.21.0
version_10.22.0
4. 切换当前分支到最新分支version_10.22.0
lucky@lucky-macbook:Karabiner$ git checkout version_10.22.0
lucky@lucky-macbook:Karabiner$ git checkout version_10.22.0
5.编译
lucky@lucky-macbook:Karabiner$ make
6. 编译完
ject is not signed at all
Applications/Karabiner.app/Contents/Applications/Karabiner_multitouchextension.app: code object is not signed at all
In architecture: x86_64
Applications/Karabiner.app/Contents/Applications/Karabiner_AXNotifier.app: code object is not signed at all
In architecture: x86_64
Applications/Karabiner.app/Contents/Applications/Karabiner Preferences.app: code object is not signed at all
In architecture: x86_64
Applications/Karabiner.app/Contents/Applications/EventViewer.app: code object is not signed at all
In architecture: x86_64
Applications/Karabiner.app: code object is not signed at all
In architecture: x86_64
Create pkg
pkgbuild: Reading components from pkginfo/pkgbuild.plist
pkgbuild: Adding component at Applications/Karabiner.app
pkgbuild: Adding component at Library/Application Support/org.pqrs/Karabiner/Karabiner.signed.kext
pkgbuild: Adding top-level preinstall script
pkgbuild: Adding top-level postinstall script
pkgbuild: Wrote package to Karabiner-10.22.0/Installer.pkg
Fix Archive.bom
productbuild: Wrote product to Karabiner-10.22.0/Karabiner.sparkle_guided.pkg
Sign with Developer ID
productsign: error: Could not find appropriate signing identity for “79E265756C43F62E157DB5C8FA405B54428653F9”.
Make Archive
.......................
lucky@lucky-macbook:Karabiner$ ls
lucky@lucky-macbook:Karabiner$ ls
CONTRIBUTING.md NEWS.md pkginfo
DEVELOP.md README.md pkgroot
Karabiner-10.22.0.dmg Tests src
LICENSE.md files util
Makefile make-package.sh version
成功编译了Karabiner-10.22.0.dmg,就是安装包。至于没有签名的警告没什么关系,防止能够正常使用
步骤二、安装
鼠标双击Karabiner-10.22.0.dmg就可以了,安装后重启系统。
步骤三、设置键盘重复键灵敏度
1. 打开Karabiner选择Key Repeat
2. 勾选Override the key repeat values of system
3. 分别填写“在重复延迟”和“重复时间间隔”,注意单位是毫秒
大功告成,再玩vim就很嗨了。
Karabiner的github地址为
https://github.com/tekezo/Karabiner
步骤一、生成安装包
有以下两种方式获得Karabiner.dmg安装包
方法一、直接下载最新版本的稳定源
https://pqrs.org/osx/karabiner/
可以下载最新版本
方法二、下载源码并编译
1. 下载仓库
$ git clone https://github.com/tekezo/Karabiner.git
2. 进入源码目录
$ cd Karabiner
3. 查看tag标志
lucky@lucky-macbook:Karabiner$ git tag
version_10.0.0
version_10.1.0
version_10.10.0
version_10.11.0
version_10.12.0
version_10.13.0
version_10.14.0
version_10.15.0
version_10.16.0
version_10.17.0
version_10.18.0
version_10.19.0
version_10.2.0
version_10.20.0
version_10.21.0
version_10.22.0
4. 切换当前分支到最新分支version_10.22.0
lucky@lucky-macbook:Karabiner$ git checkout version_10.22.0
lucky@lucky-macbook:Karabiner$ git checkout version_10.22.0
5.编译
lucky@lucky-macbook:Karabiner$ make
6. 编译完
ject is not signed at all
Applications/Karabiner.app/Contents/Applications/Karabiner_multitouchextension.app: code object is not signed at all
In architecture: x86_64
Applications/Karabiner.app/Contents/Applications/Karabiner_AXNotifier.app: code object is not signed at all
In architecture: x86_64
Applications/Karabiner.app/Contents/Applications/Karabiner Preferences.app: code object is not signed at all
In architecture: x86_64
Applications/Karabiner.app/Contents/Applications/EventViewer.app: code object is not signed at all
In architecture: x86_64
Applications/Karabiner.app: code object is not signed at all
In architecture: x86_64
Create pkg
pkgbuild: Reading components from pkginfo/pkgbuild.plist
pkgbuild: Adding component at Applications/Karabiner.app
pkgbuild: Adding component at Library/Application Support/org.pqrs/Karabiner/Karabiner.signed.kext
pkgbuild: Adding top-level preinstall script
pkgbuild: Adding top-level postinstall script
pkgbuild: Wrote package to Karabiner-10.22.0/Installer.pkg
Fix Archive.bom
productbuild: Wrote product to Karabiner-10.22.0/Karabiner.sparkle_guided.pkg
Sign with Developer ID
productsign: error: Could not find appropriate signing identity for “79E265756C43F62E157DB5C8FA405B54428653F9”.
Make Archive
.......................
lucky@lucky-macbook:Karabiner$ ls
lucky@lucky-macbook:Karabiner$ ls
CONTRIBUTING.md NEWS.md pkginfo
DEVELOP.md README.md pkgroot
Karabiner-10.22.0.dmg Tests src
LICENSE.md files util
Makefile make-package.sh version
成功编译了Karabiner-10.22.0.dmg,就是安装包。至于没有签名的警告没什么关系,防止能够正常使用
步骤二、安装
鼠标双击Karabiner-10.22.0.dmg就可以了,安装后重启系统。
步骤三、设置键盘重复键灵敏度
1. 打开Karabiner选择Key Repeat
2. 勾选Override the key repeat values of system
3. 分别填写“在重复延迟”和“重复时间间隔”,注意单位是毫秒
大功告成,再玩vim就很嗨了。
相关文章推荐
- 移动WEB布局使用less语法之视网膜屏幕如何来解决图片像素问题
- 如何解决Excel表格如何进行复制 (不能复制移动问题!)
- VC++ 解决在鼠标移动时,光标闪烁的问题。其实本质是 ON_SETCURSOR的用法
- 如何解决移动应用中 PeekMessage 调用的资源利用问题
- 如何解决移动硬盘找不到的问题
- 解决笔记本光标乱移动问题
- 如何解决移动硬盘打不开的问题
- Mac 中mysql5.7没有配置文件,如何解决only_full_group_by 问题
- 如何解决mac上不了网的问题
- 如何利用企业移动应用来解决当今的最大问题?
- android开发如何更好的解决适配不同屏幕大小移动设备的问题
- 串口屏光标移动花屏的问题解决
- 如何解决移动软件中的连接状态问题
- 关于mac OS X如何恢复网络出厂设置,基本可以解决mac各种网络链接问题。
- 如何解决dxBarManager上面编辑框录入内容不能立刻生效的问题(光标移开,而不是tab,会导致内容revert)
- 如何解决mac下MAMP不能重启apache server的问题
- 问题的解决:SpinBoxFieldManager中,可是光标只能在3个spin box来回移动,不能移动到下面的其他field了
- Mac下不能读写移动硬盘问题解决
- 如何解决mac系统打开谷歌浏览器出现的跨域问题
- 如何解决Mac里面解压后文件名乱码问题