Command Mode
:s/a/b/g
Substitute on current line
:%s/a/b/g for whole file
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.