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.状态栏常驻当前文件绝对路径