kakoune paste block or multiple selections

Assume you have:

aaa
bbb
ccc

111
222
333

…and you want to end up with:

aaa   111
bbb   222
ccc   333

I dunno what you’d call this. Maybe “pasting a block” or “interlacing lines”.

In vim (what I know fairly well), I’d do:

So as I’m still learning kak, I wanted to recreate that in kakoune. This is what I’ve come up with:

Note: if you do not do the <a-s> to split the selection, you’ll end up pasting the whole block (all 3 lines) after each selected line. That’s not what we want.

Or, I can do it without cutting the newlines:

I’m a total kak n00b so I’m sure there are better ways, and I even found that _ trick to drop newlines while I was writing this, but I’m just happy I’ve got it working at all.

comments powered by Disqus