From 99e37d638830c5eb5c72495ee32bedf96fb8247e Mon Sep 17 00:00:00 2001 From: daniel <48235622+1024daniel@users.noreply.github.com> Date: Tue, 14 Jan 2025 01:25:39 +0800 Subject: [PATCH] =?UTF-8?q?Update=20content=20src/site/notes/Applications/?= =?UTF-8?q?vim=E4=BD=BF=E7=94=A8=E5=92=8C=E7=9B=B8=E5=85=B3=E6=8A=80?= =?UTF-8?q?=E5=B7=A7.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...214\347\233\270\345\205\263\346\212\200\345\267\247.md" | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git "a/src/site/notes/Applications/vim\344\275\277\347\224\250\345\222\214\347\233\270\345\205\263\346\212\200\345\267\247.md" "b/src/site/notes/Applications/vim\344\275\277\347\224\250\345\222\214\347\233\270\345\205\263\346\212\200\345\267\247.md" index 0ce7c5b..5193f80 100644 --- "a/src/site/notes/Applications/vim\344\275\277\347\224\250\345\222\214\347\233\270\345\205\263\346\212\200\345\267\247.md" +++ "b/src/site/notes/Applications/vim\344\275\277\347\224\250\345\222\214\347\233\270\345\205\263\346\212\200\345\267\247.md" @@ -38,8 +38,12 @@ ctrl R ``` ### 4.批量替换 +> [!NOTE] 注意 +> %表示整个文件,否则只会替换当前行 + + ```bash -:s/hello/hi/g +:%s/hello/hi/g ``` ### 5.编码相关 @@ -125,6 +129,7 @@ vim file +155 :set noexpandtab :%retab! + ``` ### 11.状态栏常驻当前文件绝对路径