Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 9v0063d76854000000000249

Paste a column after a column

This task is very common while using multi-cursor. What is the elegant vim way ?

Start file
Names
Donald Knuth
Sebastian Thrun
Peter Norvig
Satoshi Nakamoto
Age
100
50
60
45
End file
Names,Age
Donald Knuth,100
Sebastian Thrun,50
Peter Norvig,60
Satoshi Nakamoto,45

View Diff

1,10c1,5
< Names
< Donald Knuth
< Sebastian Thrun
< Peter Norvig
< Satoshi Nakamoto
< Age
< 100
< 50
< 60
< 45
---
> Names,Age
> Donald Knuth,100
> Sebastian Thrun,50
> Peter Norvig,60
> Satoshi Nakamoto,45

Solutions by @pacuna:

Unlock 3 remaining solutions by signing in and submitting your own entry
Created by: @__ngtrongkha

551 active golfers, 2526 entries

Solutions by @pacuna:
24
#382 - Pablo Acuna / @pacuna

08/29/2024 at 12:11AM

26
#>399 - Pablo Acuna / @pacuna

08/29/2024 at 12:08AM

27
#>405 - Pablo Acuna / @pacuna

08/28/2024 at 11:55PM