Skip to content

Commit

Permalink
update help
Browse files Browse the repository at this point in the history
  • Loading branch information
chxuan committed Jun 10, 2018
1 parent ee9ef9b commit 8222330
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions help.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,10 @@
| `u` | 撤销 |
| `U` | 撤销整行操作 |
| `CTRL-R` | 撤销上一次 u 命令 |
| `J` | 链接多行为一行 |
| `J` | 连接若干行 |
| `gJ` | 连接若干行,删除空白字符 |
| `.` | 重复上一次操作 |
| `~` | 替换大小写 |
| `~` | 交换大小写 |
| `g~iw` | 替换当前单词的大小写 |
| `gUiw` | 将单词转成大写 |
| `guiw` | 将当前单词转成小写 |
Expand Down Expand Up @@ -271,6 +272,16 @@
| `:%s/$/test/` | 在行尾加入特定字符(也可以用宏录制来添加) |


使用外部程序
------------

| 快捷键 | 说明 |
| ------- | ----- |
| `!` | 告诉vim正在执行一个过滤操作 |
| `!5Gsort<Enter>` | 使用外部sort命令对1-5行文本排序 |
| `!!` | 对当前行执行过滤命令 |
| `!!date<Enter>` | 用"date"的输出代替当前行 |

宏录制
------------

Expand Down

0 comments on commit 8222330

Please sign in to comment.