Cheatography
https://cheatography.com
keyboard shortcut for my own vim config
VIM
TaskList |
\t |
list tasks |
Nerd Tree |
\n |
display file tree |
Gundo |
\g |
display undo tree |
Ack! |
\a |
Mark |
\m |
高亮当前word |
|
\r |
regex高亮 |
|
\c |
clear 当前或所有mark |
BufExplorer |
Alt-F12 |
list all buffer |
|
C-A-right |
切换右边buffer |
|
C-A-left |
切换左边buffer |
CtrlP |
\p |
CommandT |
\f |
查找文件 |
|
\b |
查找buf |
vim-surround |
cs]} |
|
ds] |
|
dst |
|
S] |
visual模式, 给selection添加[] |
Tagbar |
F8 |
easymotion |
s |
以单词的前两个字母搜索 |
|
# |
search word under cursor |
|
/ |
搜索 |
vim-easy-align |
select, enter, = |
visual模式, 用=来align |
|
gaip= |
ga开始, ip选择, =aliagn |
Targets.vim
format |
v[number][range][modifier][object] |
Objects |
()b {}B [] <> t |
Pair text object |
|
, . ; : + - = ~ _ * # / | \ & $ |
seperators |
|
' " ` |
Quots |
|
a |
Argument Text Objects |
range |
i |
inside of pair characters. |
|
a |
Select a pair including pair characters |
|
I |
insde pair, exclude whitespace |
|
A |
include pair, include whitespace at one side. |
modifier |
l |
last |
|
n |
next |
|
L |
last second |
|
N |
next second |
examples |
v2i( |
选择2重 () 中内容 |
|
vin( |
选择下一个()中内容 |
|
v2in( |
选择下面第二个()中内容 |
|
Created By
wenliang.net
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by wenliang