Last Updated: February 25, 2016
· rshetty

Inserting Text Repeatedly in Vim

To insert some text repeatedly in Vim, say you want to insert '-' for 30 times.

Its Real simple to do that in Vim

Follow this sequence for inserting 30 '-' s in Vim

30i - <ESC> 

Thats it, you can use this to repeat any text in simple steps.

Consider inserting 'Hello' 3 times

3i Hello <ESC>

Note : Start the above Commands in 'Command mode' of the vim.