From de2555ae0c81be22b78b0c8cfec8c708b55c5047 Mon Sep 17 00:00:00 2001 From: Zhao Chi Date: Sat, 18 Dec 2021 12:06:30 +0300 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0vim=E4=BB=8E=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E8=A1=8C=E6=9B=BF=E6=8D=A2=E5=88=B0=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E8=A1=8C=E7=9A=84=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editors/vim.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/editors/vim.txt b/editors/vim.txt index 0a4e30a..80a2a2d 100644 --- a/editors/vim.txt +++ b/editors/vim.txt @@ -291,6 +291,7 @@ N 向相反方向执行上一次搜索 :., ns/p1/p2/g 将当前行到n行中所有p1替换为p2 :., +10s/p1/p2/g 将当前行到相对当前行加10行的区间中所有p1替换为p2 :., $s/p1/p2/g 将当前行到最后一行中所有p1替换为p2 +:0,.s/p1/p2/g 将第一行到当前行中所有p1替换为p2 :%s/1\\2\/3/123/g 将“1\2/3” 替换为 “123”(特殊字符使用反斜杠标注) :%s/\r//g 删除 DOS 换行符 ^M