mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-16 20:21:22 +08:00
chore: format markdown code. (#42)
* format: fix markdown * update: fix markdown * update: fix cron problems * update: delete .markdownlintignore * update * chore: add tab -> 4 space * chore: fix tab -> 2 in the .editorconfig
This commit is contained in:
13
docs/vim.md
13
docs/vim.md
@ -46,7 +46,7 @@ G gg H M L k j ▶ print("to")
|
||||
┆ ╰┈┈┈┈┈▷
|
||||
┆ - SCREEN 1 END
|
||||
╰┈┈┈┈┈┈┈┈┈┈┈┈┈┈▷ print("SCREEN 2")
|
||||
```
|
||||
```
|
||||
|
||||
### 动作
|
||||
<!--rehype:wrap-class=row-span-2-->
|
||||
@ -163,7 +163,7 @@ G gg H M L k j ▶ print("to")
|
||||
快捷方式 | 说明
|
||||
:- | -
|
||||
| `d` _\|_ `x` | 删除选择 _(剪切)_
|
||||
| `s` | 替换选择
|
||||
| `s` | 替换选择
|
||||
| `y` | Yank 选择 _(复制)_
|
||||
<!--rehype:className=shortcuts-->
|
||||
|
||||
@ -210,7 +210,7 @@ Vim 运算符
|
||||
|
||||
快捷方式 | 说明
|
||||
:- | -
|
||||
`d` | <yel>w</yel>
|
||||
`d` | <yel>w</yel>
|
||||
运算符 | 动作
|
||||
<!--rehype:className=shortcuts-->
|
||||
|
||||
@ -276,7 +276,6 @@ Vim 文本对象
|
||||
### 用法
|
||||
<!--rehype:style=background:#d7a100;-->
|
||||
|
||||
|
||||
快捷方式 | 说明
|
||||
:- | -
|
||||
`v` | <pur>i</pur> _/_ <pur>a</pur> | <yel>p</yel>
|
||||
@ -435,6 +434,7 @@ Vim 搜索和替换
|
||||
```vim
|
||||
:%s/{pattern}/{str}/[flags]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
:- | -
|
||||
@ -460,7 +460,7 @@ Vim 搜索和替换
|
||||
`,3` | 接下来的 `3` 行
|
||||
`-3,` | 转发 `3` 行
|
||||
|
||||
### 全局命令
|
||||
### 全局命令
|
||||
<!--rehype:wrap-class=row-span-2-->
|
||||
|
||||
```vim
|
||||
@ -516,7 +516,6 @@ Vim 搜索和替换
|
||||
### 例子
|
||||
<!--rehype:wrap-class=col-span-2-->
|
||||
|
||||
|
||||
```shell
|
||||
:s/a\|b/xxx\0xxx/g # 将 "a b" 修改为 "xxxaxxx xxxbxxx"
|
||||
:s/test/\U& file/ # 将 "test" 修改为 "TEST FILE"
|
||||
@ -855,4 +854,4 @@ dfx # 删除文本直到字符“x”(包括字符“x”): delete forward x
|
||||
- [Devhints](https://devhints.io/vim) _(devhints.io)_
|
||||
- [Vim cheatsheet](https://vim.rtorr.com/lang/zh_cn/) _(vim.rotrr.com)_
|
||||
- [Vim documentation](http://vimdoc.sourceforge.net/htmldoc/) _(vimdoc.sourceforge.net)_
|
||||
- [Interactive Vim tutorial](http://openvim.com/) _(openvim.com)_
|
||||
- [Interactive Vim tutorial](http://openvim.com/) _(openvim.com)_
|
||||
|
Reference in New Issue
Block a user