Command Mode
:%s/a/b/g
Substitute in the whole file
:%s/old/new/g
1
2
3
4
def greet(name):
msg = "hello, " + name
print(msg)
return msg
-- NORMAL --
Free practice — click the editor, then type. Try
:%s/a/b/g yourself.