That’s pretty cool. It seemed a bit slow creating the “macro” but pretty cool to see it run through all the lines.
The way I would do that in vscode would be with a multi-edit, but it would get iffy at that many lines.
I‘ll record a video doing the same for comparison tomorrow.
This makes me wish there was a site for recording challenges like this where developers could race using their favorite tools.
Vim vs VScode would be an amazing way to learn tips from experts on both sides.
Nice vim demo on youtube, how does the sequenced numbering work? Can vim increment a number without any plugins?
Re:How Did Vim Become So Popular?
by macromaniac on Wednesday July 01, 2020 @03:21PM
(#23705355)
Ya, basically go up, grab number, go down, paste number, increment number, go down, repeat 50 times. Needed for generating xaml that had row and column #s from the csv, interestingly excel could gen the code too relatively quickly.
https://www.youtube.com/watch?v=UDGG3hK4Bg8
Its a simplified version of a problem from work a while ago where we had to generate ui from lots of csv files. The last dev on it was taking weeks, but with vim I was able to come in and finish the boilerplate instantly. (We were commited to non-dynamic ui at that point, I think I made the right play especially with how we ended up using it).
Vim is, in my opinion, inferior to an ide or a good text editor, but if you have it as a plugin you get the best of both worlds and vim suddenly can do... basically anything you can think of. Like here's putting a breakpoint on every line in a file
https://imgur.com/SFhlEr7
The best part of vim in an ide is when you're pair programming and you do something fancy, and your friend says "Wait, go back, howd you do that??"