Yifei Kong

Jan 18, 2018

一些 vim 小技巧

重新对齐文本到固定长度

gq<motion>

check if mapping is replaced

:verbose map <Key>

using map may cause infinite recursion!

force set syntax

# vim: set filetype=javascript

exit

使用 Ctrl-C 而不是esc 使用ZZ而不是:wq

window management

use ctrl-w r to swap pane

folding

{selection}zf or zf{motion} for manual folding

history

Ctrl-O to …

Jul 29, 2017

May 30, 2017

Chrome Hotkeys

In Omnibar, press tab after a search-able website will search for the website prefix ? will search forcefully

⌘T  Open a new tab
⇧⌘T Reopen tab just closed
⌘W  colse a tab
⌘⌥→ Go to left tab
⌘[  / Delete    Go back in history
⌘]  / Delete    Go forward in history
⌘M  minimize
⇧⌘B show/hide …

May 30, 2017

Macbook tricks

用起来的确爽,视网膜屏幕绝对打开新的世界

4k屏幕打开另一个世界,一个屏幕可以开4个窗口,哈哈

PYTHONPATH 变量会干扰brew安装的python3

Dock放在左边,设置F1,设置轻触,设置全局控制 使用tab键切换

You can make movie with quick time

Option + Command +Esc 强制退出程序

Homebrew + iterm2 真乃神器 Brew cask is a good thing

Hold option+command and mouse to do a block selection

Weird, mac echo not working with \e but …

May 30, 2017