vimdojo
Normal Mode
r x

Replace char under cursor with x

r$ → replace with $
~/vimdojo/greet.py
PYTHON · UTF-8 · LF
1
2
3
4
def greet(name):
msg = "hello, " + name
print(msg)
return msg
NORMAL
main
python
Ln 2, Col 5
-- NORMAL --
Free practice — click the editor, then type. Try r x yourself.