4 ms·
It's as if he can only program in sed and he can't save the sed scripts. Even if I could learn such complex and arcane syntax, I would surely forget it by the t
by manholio 4y ago
It's as if he can only program in sed and he can't save the sed scripts. Even if I could learn such complex and arcane syntax, I would surely forget it by the time I need to use it.
True, writing a program for this task is bringing a bazooka to knife fight, but a bazooka is such a terrifying weapon that will make you king of the hood so fast that you will never have to waste time fighting with knives.
- fifilura 4y agoI would not call writing 15 lines of python code in a throw-away notebook a bazooka. It is just a code snippet.
- raspyberr 4y agoThere's nothing to forget though. It's just the same regular commands you use when interacting with vim. Same argument applies to doing it in Python that you'd forget the syntax or functions. If you're not gonna forget python, why would you forget common vim commands. To be fair, I have no idea why he used ":norm" instead of putting it in a macro which is a lot more well known and would've done the same thing.
- deleted 4y ago[deleted]