Open AndreGeng opened 5 years ago
CTRL-w 向前删除一个单词 CTRL-k 从光标向后删除到行尾
cdo %s/<search term>/<replace term>/cg
vim性能评估
vim --startuptime vim.log
:profile start profile.log
:profile func *
:profile file *
" At this point do slow actions
:profile pause
:noautocmd qall!
tmux list-windows
ctrl-space(prefix:) + :
swap-window -s 3 -t 1
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
Register
用r寄存器为例
"ryw
"rp
CTRL-rr 默认寄存器 ""
Git
Glog master.. --author=xxx --
Glog master.. --author=xxx
可以用zm fold来检查看更改了哪个页面 ]q,[q来上下移动commit