News for hackers. Stuff that matters.
Re:Show HN: Ki Editor - the multicursor syntactical editor by cassepipe on Monday September 09, 2024 @10:31AM (#41488903)
I am a vim user and I wonder what is the use of going five words forward when you can just search for the beginning of the word you want to go to and press enter (even works across lines).

After using vim for a while now I do most of my navigation and editing by searching/replacing

Re:Show HN: Ki Editor - the multicursor syntactical editor by kragen on Monday September 09, 2024 @11:02AM (#41489169)
yes, usually it's better to do a search in both vim and emacs, unless you're recording a keyboard macro or using multiple cursors. commonly in the macro or multicursor case, the search string would be different on every line you're trying to make the edit on
Re:Show HN: Ki Editor - the multicursor syntactical editor by cocok on Wednesday September 11, 2024 @01:12AM (#41508202)
I wouldn't say either is better "usually", it really depends on the situation.

If the next five words begin with the same prefix (happens to me), searching will be wasteful. Just spamming "w" is easier.

But when there's something really distinctive (often, punctuation) near the position I'm aiming for, I'll definitely use search.

That's one of the reasons I prefer BRE over ERE/PCRE when editing text interactively - I can search for punctuation in code without having to backslash-escape it.

Re:Show HN: Ki Editor - the multicursor syntactical editor by kragen on Wednesday September 11, 2024 @07:07PM (#41516081)
you have some good points

'bre vs. ere' is terminology i wasn't familiar with, though i've often tripped over the differences: https://www.gnu.org/software/sed/manual/html_node/BRE-vs-ERE...

iirc mit teco used control characters for its regexp metacharacters to diminish this particular problem