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 553 remaining solutions by signing in and submitting your own entry
#554 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

554 active golfers, 2540 entries

Leaderboard (lowest score wins):
25
#391 - Markus Ditlev Olsen / @DitlevOlsen

09/30/2023 at 08:35PM

25
#392 - x𝕏θ₯Ώεœ’寺やきしゃも𝕏x / @y_saionji_tech

11/20/2023 at 06:50AM

25
#393 - Shywizz / @Shywizz

01/14/2024 at 03:25PM

25
#394 - Andrey Rakhubovsky / @omnster

03/29/2024 at 09:38AM

25
#395 - Justin / @justin4481

06/08/2024 at 02:35PM

26
#396 - Max Taylor / @maxtaylorxyz

02/13/2023 at 07:29PM

26
#397 - lytoooo0 / @lytoooo0

03/03/2023 at 08:20PM

26
#398 - johnsnow / @johnsnow828904

04/13/2023 at 04:54PM

26
#399 - Julian Pottle / @jules_np

08/19/2023 at 07:36PM

26
#400 - ewinge1 / @ewinge1

11/06/2023 at 07:51PM

26
#401 - lejeunel / @lejeunel

04/04/2024 at 09:36AM

27
#402 - Zhou Jiazheng / @ZhouJiazheng0

02/05/2023 at 07:36AM

27
#403 - Aldiyar Amirov / @aldeeyar

03/18/2023 at 09:25PM

27
#404 - Carly Matson / @carlymatson

04/24/2023 at 01:21PM

27
#405 - Eric Romano / @shlomano

10/05/2023 at 05:35AM

27
#406 - George Angelopoulos / @gangelop

02/11/2024 at 08:05AM

27
#407 - jonmellerby / @jonmellerby

04/12/2024 at 12:09PM

28
#408 - onigomex / @onigomex

02/20/2023 at 12:24PM

28
#409 - Willy / @Willy6932612311

08/30/2024 at 06:52AM

29
#410 - Ben Kettle / @kett_ben

02/18/2023 at 12:04AM

29
#411 - Mequam BlueSpark / @MBluespark68823

03/15/2023 at 03:11AM

31
#412 - JuanP / @JuanP41938416

02/11/2023 at 02:52AM

31
#413 - Max Shen / @m4xshen

05/24/2023 at 06:35AM

31
#414 - Sumanth Yedoti / @sumanthyedoti

05/25/2023 at 06:04PM

31
#415 - dakmuk / @yeongha_yang

07/07/2023 at 12:47AM

31
#416 - v punch / @vpunch531192

08/07/2023 at 03:36PM

31
#417 - Will-Hendrix / @Will-Hendrix

03/26/2024 at 01:51PM

31
#418 - sodawithbubbles / @sodawithbubbles

06/05/2024 at 11:23AM

32
#419 - Pretend it's Beef / @EthanMcQuarrie

08/25/2023 at 04:41AM

33
#420 - Elton Kamami / @pixel_grid

02/03/2023 at 08:09PM