I want to replace a sequence of 6 hex digits (hex RGB) with new values, but I want to repeat a 2-tuple 3 times.
For example:
Start: #ea9081
(with the cursor on 'e')
Desired: #f0f0f0
I know I can do 6rf
, as an example to change all 6 values to 'f', or dte3if0<esc>
to delete to end of word and repeat-insert 3 times. But is there a way to modify something along the lines of 3cef0<esc>
to repeat a change three times? Or some magic with s
(substitute)?
cw
and thenf0f0f0
; you can probably be more "clever" about it, but you'll spend more time on the cleverness than you'd save repeatingf0
two times.