4 ms·
Here's a video of some more advanced vim features I threw together. I'd be surprised if you can do this using e.g. vanilla vscode https://www.youtube.com/watch
by macromaniac 6y ago
Here's a video of some more advanced vim features I threw together. I'd be surprised if you can do this using e.g. vanilla vscode
https://www.youtube.com/watch?v=UDGG3hK4Bg8 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 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??"
- zoid_ 6y agoNice vim demo on youtube, how does the sequenced numbering work? Can vim increment a number without any plugins?
- alwillis 6y agoYes.
- macromaniac 6y agoYa, 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.
- ricksharp 6y agoThat’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.