[Vim]run a macro repeatedly with f

Tue Feb 11

Vim practice

Author:Noritaka

Astroのロゴ。
run macro repeatedly simple
Copy and paste the below text and type some commands like below.

---
1. /1. <CR>  (search 1.)
2. qq        (register macro q)
3. 0 f. r)   (search . and replace it with ))
4. w~ j      (jump to next word and convert to uppercase)
5. j         (move to next line)
6. q         (stop registration macro q)
7. 3@q       (RUN THE MACRO 3 TIMES)
---
1. one
2. two
3. three
4. four
tip671

Vim