News for hackers. Stuff that matters.
Re:Neovim 0.5 is overpowering by chousuke on Wednesday May 26, 2021 @01:25PM (#27293422)
I think I would've used something like :s/'\(.*\)',/'\1': Enum.\1,/g and then ctrl-v to block-select all the first characters and U to uppercase them.

Vi's not always about finding the most efficient way to do something, but having a composable language to do tricks like these comfortably builds up into your own dialect over time.

Re:Neovim 0.5 is overpowering by heatmiser on Wednesday May 26, 2021 @02:15PM (#27294069)
I’m often fallback on the sed match-replace strategy for things like this.