摆弄好了再开干 | 工作耍帅两不误
We spend so much of our time trying to fit in. One day, it will occur to us life is much more rewarding when choosing the road not taken, a life not patterned after someone else’s, an editor, very few will ever use.
Vim 让人爱又让人狠,我也经常按错键,我也苦恼一个 motion 不够聪明,我也尴尬用鼠标可以轻易实现的事,为什么非要绕大圈用 Vim 去做,我也奇怪为什么花这么多时间搞配置,我更气氛还非要把它弄漂亮,花这么多时间,不如多刷刷算法,多看看女团。
思来想去,不得其解。后来,我悟了,因为 Vim 就像人生,不断折腾,不断失败,不断进步,才是意义。那句话怎么说来着,life is full of struggle,对,Vim is full of shit,但是,shit can be lesson to life。(哎呦,闭环了,不错哦)
而快捷键让我喜欢编程,探索工具类的快捷键组合,形成自己的套路,有种武侠的风采。
工具类对于我们来说就是枪械和刀具,摆弄好了再开干,工作耍帅两不误。
Vim
首先,颜控的 Vim 必须靓,不然不用,废话少说,直接看图:

上面这张图是 2016 年玩 Vim 配置的第一张图,其实色彩和对比度已经很不错了,但是我还是不满意,执念于配置得和 one-dark 一样,不停摆弄,不停配置,不停试错后就成功了。

一个字,帅!配置拿走,不谢。😎
Zsh + Tmux + Vim
| Client | Themes | Fonts | Colors |
| ---------------- | -------------------------------------------------------------------------- | -------------------------------------- | ----------- |
| Neovim | [Vim-One](https://github.com/rakr/vim-one) | [Hack](http://sourcefoundry.org/hack/) | # |
| Tmux | [Maglev](https://github.com/caiogondim/maglev) | Hack | # |
| Zsh | [Bullet Train](https://github.com/caiogondim/bullet-train-oh-my-zsh-theme) | # | # |
| Borderless iTerm | [Spacegray Eighties](https://github.com/mbadolato/iTerm2-Color-Schemes) | # | BG: #282c34 |
Borderless iTerm
./install.sh 30 30
./install.sh 25 25
Neovim
infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $TERM.ti
tic $TERM.ti
Enable macOS system key repeats
$ defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false # For VS Code
$ defaults write com.microsoft.VSCodeInsiders ApplePressAndHoldEnabled -bool false # For VS Code Insider
$ defaults write com.vscodium ApplePressAndHoldEnabled -bool false # For VS Codium
$ defaults write com.microsoft.VSCodeExploration ApplePressAndHoldEnabled -bool false # For VS Codium Exploration users
$ defaults delete -g ApplePressAndHoldEnabled
Tools
Key mapper: Karabiner element
https://karabiner-elements.pqrs.org/
用了十年 + 的免费 key mapper,良心之作,来自日本的 bro 也是给力,自己一个人维护,很多时候不得不感谢开源的力量,当然用了就要打赏别人,别总整下次一定。🙃
奉上我觉得好用得场景:
- control
+ h
+ j
+ k
+ l
: left
down
up
right
.
- control
+ option
+ h
or l
: 单词之间的跳动,类似 Vim 里面的 w 在 normal mode。
- control
+ option
+ shift
+ h
+ l
: 左右高亮单词,类似 Vim 里面的 w 和 b 在 visual mode。
- control
+ cmd
+ h
or l
: 跳到结尾和开头, 类似 Vim 里面的 $ 和 0 + w 在 normal mode。
- control
+ cmd
+ shift
+ h
+ l
: 左右高亮光标起始点的到剩下距离,类似 Vim 里面 v + $ 在 visual mode。
- control
+ cmd
+ k
or j
: 光标瞬移文件的最上行和最下行,类似 Vim 里面的 gg 或者 G。
- control
+ cmd
+ shift
+ k
or j
: 高亮整个文件,类似 Vim 里面的 gg 或者 G 在 visual mode。
编辑器: Neovim
一眼 Vim,已误终生。
剪切板:Pastebot
虽然不是免费,不过,剪切板可以保存截图就有点太秀了。
视频截取工具: Kap
https://github.com/wulkano/Kap
开源,免费且好用。
IDE: VSCode with VSvim
在这个组合前面,任何介绍都是多余,看图:


我已经习惯白天用明色,晚上用暗色。
终端: Tabby
https://github.com/Eugeny/tabby
这是我目前用过的最时尚的 Terminal.
Shell: Oh-my-zsh
谁不喜欢 z-shell?站出来,我和你掰头。
字体
对审美有要求的人,都不满足于系统自带字体,这不就是好看的来了。
截图: Snipaste
这个特别好用,比微信自带的好用很多,你问我哪里好用?那必须是快捷键完爆微信。
浏览器: Arc
Bro 们,表忘了用我的链接下载 Arc,也让我集个 icons。
Here’s a link to download Arc, the browser I was telling you about!
其实,很多不愿意换到 Arc 的人多是因为 Chrome 已经很好用了,那么我就问你一个问题,你开辣么多 tabs,你烦不烦?😉
Git: Github Desktop Client
哈,想不到我会推这个吧?原因其实简答,我觉得写代码就应该从不同的场景切换出来。比如,我终于搞完了一个复杂的回调函数,头都看大了。这个时候如果直接在便捷器里面 commit,很容易出错。但是如果切出来,用整体视角去看 commit 的文件,就清晰了。这有点像,强制自己 look from outside of the box.
Spotlight: Raycast
完爆原生。