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

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 486 remaining solutions by signing in and submitting your own entry
#487 KingSann / @iferkey - Score: 275 - 09/13/23 @ 03:34
6G<C-V><Down><Down><Down><Down><Down><Down><Down><Down><Right><Left>y<Up><Up><Up><Up><Up><Up><Up><Up>A           <C-C><C-C><Right>pu<Down><Down><Down><Down><Down><Down><Down><Up><Up><Left><Left><C-V><Right><Down><Right><Down><Right><Down><Down><Left><Right><Left>y<Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up>A<C-R>"<C-C><C-C>upu<Down><Down><Down><Down><Down><Down><Down><Down><Down><Down><Left><Up><Up><Up><Up><C-V><Right><Down><Right><Down><Down><Down><Down>y<Up><Up><Up><Up><Up><Up><Up><Up><Up>A   <C-C><C-C>p<Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Down><Down><Down><Down><Down>v<Down><Down><Down><Down><Down><Down><Down>D<Up><Up><Up><Up><Right><Right><Right><Right><Right>DFaU<Right><Left>DU<C-C><C-C>UUUUU<Right>UUUUUUa<Tab><Tab><BS><BS> aGE<BS><BS><BS><BS>, Age<Down><Right><Right><C-C><C-C><Right>df1i, 1<BS><BS>1<Left><Up><Left><Left><Left><BS><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><C-C><C-C><Right>v<Right><Right><Right><Right>s,5<Down><Left><Left><Left><Left><C-C><C-C>v<Right><Right><Right><Right><Right><Right>s,<Down><Right><Right><Right>v<Right><Right><BS><BS><Right><BS><BS>.<BS>,<C-C><C-C>ZZ

0 comments


Created by: @__ngtrongkha

487 active golfers, 2243 entries

Leaderboard (lowest score wins):
23
#301 - Mohammed Raqeeb Shafeeque / @raqeebshafeeq

02/09/2023 at 01:00PM

23
#302 - Jay Knight ♞ / @jayknight

03/03/2023 at 09:20PM

23
#303 - Átila Saraiva Quintela Soares / @AtilaQuintela

03/12/2023 at 06:08AM

23
#304 - Niktoshka / @___krot

05/16/2023 at 04:27AM

23
#305 - Spam Mail / @mrfdot

05/26/2023 at 12:03AM

23
#306 - dennis w / @denniswld

06/27/2023 at 12:25PM

23
#307 - Abdelrahman Madkour / @A3Madkour

07/11/2023 at 07:31PM

23
#308 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

07/12/2023 at 08:57AM

23
#309 - ace / @PercyLixc

07/30/2023 at 06:18AM

23
#310 - 王雅晨 / @Yachen_Wang

08/01/2023 at 01:09PM

23
#311 - @mazunki@fosstodon.org / @me_mazunki

08/10/2023 at 06:55PM

23
#312 - 으앙 / @meri2727

10/11/2023 at 12:09PM

23
#313 - Vincent Lai / @walilav

10/13/2023 at 03:01AM

23
#314 - Ludovic Schwartz / @ludovicschwartz

11/16/2023 at 06:38PM

23
#315 - Adrián Fidalgo-Díaz / @adrianFD22

12/14/2023 at 07:19PM

23
#316 - Kevin Fu / @kfu02

01/07/2024 at 09:56PM

23
#317 - cykirk / @cykirk

01/14/2024 at 09:34PM

23
#318 - Jeff Cui / @jeffacce

02/16/2024 at 04:48AM

23
#319 - Nicolas Saavedra / @Nicolas-Saavedra

03/16/2024 at 07:09AM

23
#320 - Marius Ropotica / @cipmar

03/30/2024 at 09:12AM

23
#321 - Charlie-83 / @Charlie-83

04/18/2024 at 08:53AM

24
#322 - Himanshu Tank / @himanshutank75

03/01/2023 at 11:33AM

24
#323 - Mikhail / @mtomy

03/14/2023 at 09:49AM

24
#324 - ひろま / @HrmsEndo

04/08/2023 at 01:24AM

24
#325 - yann / @ylsarto

05/15/2023 at 08:08PM

24
#326 - SpLauT / @SpLauT1

05/19/2023 at 08:27PM

24
#327 - Parsa Alizadeh / @lizadeh1

05/20/2023 at 02:57PM

24
#328 - aspiring robber baron / @0xApophenia

05/22/2023 at 04:28AM

24
#329 - Alexandre Kholod / @wadapad07

06/20/2023 at 03:22PM

24
#330 - Injae Kang / @abcinje

07/14/2023 at 04:57PM