📜  vim 替换多行 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:13.734000             🧑  作者: Mango

代码示例1
# Replace all instances of foo with bar
:%s/foo/bar/g

# Replace all instances of foo in lines 6 to 10 inclusive with bar
:6,10s/foo/bar/g