VIM的基本命令使用以及插件配置

好不容易用英语写完了, 懒得翻译了 Basic Usage Normal Mode First Open file with VIM command, with get into Normal Mode h``j``k``l : ←``↓``↑``→ dd : delete current line x : delete current character yy : copy current line p : paste. It will paste last copied, cut or deleted texts. ^ : go to first non-blank character in current line, $ to the end u : undo, <C-r> : redo. g-/g+ : go to older/newer text state ....

January 4, 2017 · 9 min · 1864 words · Eric Yang

Mac上配置GH60键盘

安装必要的工具 brew install Caskroom/cask/crosspack-avr brew install dfu-programmer cd ~ git clone --recursive https://github.com/kairyu/tmk_keyboard_custom.git 检查 avr-gcc 命令是否可用 直接在命令行执行 avr-gcc, 如果出现command not found, 在命令行执行: PATH="/usr/local/CrossPack-AVR/bin:$PATH" export $PATH 以上命令是临时把路径 /usr/local/CrossPack-AVR/bin 放到 PATH 中,关闭Terminal后失效 修改配置文件来支持GH60_REV_CHN cd ./tmk_keyboard_custom/keyboard/gh60 vi config.h 找到 #define CONFIG_H, 在底下加上 #define GH60_REV_CHN vi Makefile 注释或删掉下面这行代码 KEYMAP_IN_EEPROM_ENABLE = yes # Read keymap from eeprom 连接测试键盘 连接后输入入下列指令 system_profiler SPUSBDataType 应该会出现: GH60: Product ID: 0x6060 Vendor ID: 0xfeed Version: 0.01 Speed: Up to 12 Mb/sec Manufacturer: geekhack Location ID: 0x14400000 / 37 Current Available (mA): 500 Current Required (mA): 100 Extra Operating Current (mA): 0 然后按下键盘背部的按钮...

December 30, 2016 · 2 min · 303 words · Eric Yang