Last Updated: February 25, 2016·
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.
Written by Rajeev N Bharshetty
Interactive Vim Tutorial
Have a fresh tip? Share with Coderwall community!
Post a tip
Best #Vim Authors
Sponsored by #native_company# — Learn More