AndreGeng / AndreGeng.github.io

blog repository
1 stars 0 forks source link

neovim插件配置与tips #23

Open AndreGeng opened 5 years ago

AndreGeng commented 5 years ago

Register

用r寄存器为例

"ryw

"rp

CTRL-rr 默认寄存器 ""

Git

Glog master.. --author=xxx --

Glog master.. --author=xxx

可以用zm fold来检查看更改了哪个页面 ]q,[q来上下移动commit

AndreGeng commented 5 years ago

mac 快捷键

CTRL-w 向前删除一个单词 CTRL-k 从光标向后删除到行尾

AndreGeng commented 4 years ago

替换quickfix window中的内容

cdo %s/<search term>/<replace term>/cg
AndreGeng commented 4 years ago

vim性能评估

启动性能评估

vim --startuptime vim.log

运行时性能评估

:profile start profile.log
:profile func *
:profile file *
" At this point do slow actions
:profile pause
:noautocmd qall!
AndreGeng commented 4 years ago

tmux custom layout

tmux list-windows

tmux switch windows

ctrl-space(prefix:) + :
swap-window -s 3 -t 1
AndreGeng commented 3 years ago

macos enable key repeats

defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false