DEV Community

Discussion on: Becoming a wizard with Vim

Collapse
 
filbranden profile image
Filipe Brandenburger

To create the file with 1000 copies of that block, just simply 999P from the first line is enough, no? No need for a long for loop there...

The stuff with incrementing a Vimscript variable from a :g and using it in a :s for the second part is genius! Very nice solution.

Great article!