HNHacker News
TopNewBestAskShowJobs

kakouneUserTmp

12 karma · joined October 6, 2020

submissionscomments
kakouneUserTmp··on What you could steal from the Kakoune code editor, and get away with
>There is a multiple cursors plugin for vim that I use; it's a bit clunky at times, but it does the job. How is kakoune's multiple cursors support better than that? How cool is it, so to speak?

I haven't used the vim plugin but if vim commands work on each selection that probably gets you half way. Kakoune additionally provides 's' and 'S' commands to sub select down from your selection iteratively. you might select all words, then select the _ in each word, delete the character and hit ~ to capitalize the next character to convert a selection of words in snake_case to camelCase. I think it's cool.

>Btw the reason I haven't tried kakoune yet is that the command is `kak`, which means 'shit' in my native language, Dutch.

I've actually heard this either on a forum, mailing list or a github issue at least once, lol. It's unfortunate.

kakouneUserTmp··on What you could steal from the Kakoune code editor, and get away with
Not the same guy but I'm a convert from vim also.

>Would you say a few words on what makes Kakoune modal editing better than Vim's?

I guess the big difference is multiple selections. In Kakoune Normal mode you can select multiple selections, and your normal mode commands operate on all those selections at once, and if you switch to insert mode you can insert text at all of those multiple cursors.

I had a paragraph with examples that I just deleted because it had sentences like "you would simply type s;<enter>b&" and that makes you sound like a crazy cultist. A better endorsement is maybe: where I would in the past write a script in python or awk to get info from a log or a csv I usually just jump straight to kakoune and edit the file down to the data I want.