Back to TILs

How to repeat text in vim

Date: 2018-11-19Last modified: 2024-06-09

To repeat things in vim use this basic command structure:

<esc>Nic<esc><esc>
<esc>Niw<esc><esc>

where:

<esc>70i=<esc><esc>
======================================================================

<esc>5iabc 123<esc><esc>
abc 123abc 123abc 123abc 123abc 123