Open evantianx opened 6 years ago
Keypress | Command | mode |
---|---|---|
x | 删除当前光标所在位置字母 | normal |
s | 删除当前光标所在位置字母 | normal ---> insert |
dd | 删除当前行 | normal |
daw | 删除当前某个词 | normal |
>G | 缩进本行及后面的行 | normal |
a | 在行首编辑 | normal ---> insert |
A | 在行尾编辑 | normal ---> insert |
f{char} | 在本行搜索某个字符并将光标移至第一个 | normal |
/ | 在本文件内搜索某个字符并将光标移至第一个 | normal |
; | 重复上次搜索 | normal |
* | 在本文件内搜索光标所在位置的词 | normal |
<C - a / x> | 增减本行出现的第一个数字(幅度以数字精度为准) | normal |
yyp | 复制当前行到下一行 | normal |
gu / gU | 改变大小写 | normal |
gg=G | 自动缩进全局 | normal |
<C - h> | backspace | insert |
<C - w> | 删除一个词 | insert |
<C - u> | 删除到行开头 | insert |
zz | 将当前行通过滚动条移至屏幕中央 | insert |
<C - o> | 执行完某个命令后继续在 insert 模式下工作 | insert ---> normal ---> insert |
yt{char} | 从光标处复制到某个字符之前 | normal |
用来重复上一步的操作
Vim's grammar has just one more rule: when an operator command is invoked in duplicate, it acts upon the current line.