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
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#