News for hackers. Stuff that matters.
Re:The Efficiency of Vim by cbm-vic-20 on Wednesday February 26, 2025 @10:28PM (#43191014)
> a modal editor that does selection first (not vim) instead of action so you get a preview of what you will delete before hitting it, you can also expand it.

This is pretty much what Visual mode does. V4jd is

* V: enter visual line mode. * 4j: select the next four lines (in addition to this one) * d: delete.

The selection is highlighted before the delete command, you can change the selection range, etc.

I use visual mode to replace stuff all the time: V10j:s/foo/bar/g It even shows the changes interactively.

Re:The Efficiency of Vim by fstarship on Wednesday February 26, 2025 @10:36PM (#43191063)
I did actually do that when I tried Vim but it felt clunky.

The find and replace is more at folder level with vscode previews only terminal equivalent I know is serpl

Re:The Efficiency of Vim by metaltyphoon on Wednesday February 26, 2025 @10:54PM (#43191172)
For that you can use a quick fix list.