📅  最后修改于: 2022-03-11 14:51:13.734000             🧑  作者: Mango
# 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