Comment

Comment by gopher_protocol

I'm not arguing that Kakoune's way isn't better (I think it probably is). But you can sort of do this in Vim as well, minus the more advanced interactive adjustments:

- :set hlsearch

- Type `/`

- Spend five seconds thinking up a regex that approximately matches the things I want to change

- Hit Enter

- Cycle through matches with `n`/`N`, checking to see if they're what I expected

- If they're not, press `/` then <Up> and edit the regex

- When satisfied, type `:%s//`, enter the replacement you want to make, then `/g<Enter>` to apply the change everywhere

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton