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 4dcd7b572c8e510001000005

Interweave two blocks of text

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

Start file
one
two
three
four
five
six
seven
eight
nine
ten
1
2
3
4
5
6
7
8
9
10
End file
one     1
two    
2
three  
3
four    
4
five    
5
six    
6
seven  
7
eight  
8
nine    
9
ten    
10

View Diff

1,20c1,10
< one
< two
< three
< four
< five
< six
< seven
< eight
< nine
< ten
< 1
< 2
< 3
< 4
< 5
< 6
< 7
< 8
< 9
< 10
---
> one   1
> two   2
> three 3
> four  4
> five  5
> six   6
> seven 7
> eight 8
> nine  9
> ten   10

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 214 remaining solutions by signing in and submitting your own entry
#215 Jurica / @Jurica34581259 - Score: 47 - 12/12/18 @ 12:02
:1,10s/$/\t<CR>1Gqa10j0yw10k$p<Esc>jq9@a:g/^[1-9]/d<CR>ZZ

0 comments


Created by: @mwhooker

215 active golfers, 661 entries

Leaderboard (lowest score wins):
21
#181 - James Cash / @jamesnvc

05/14/2011 at 12:46AM

21
#182 - Calvin Condon / @ccondon

01/31/2012 at 05:25AM

21
#183 - Ryan Nevius / @ryannevius

12/18/2018 at 04:03PM

21
#184 - Mickaël Menu / @mickaelmenu

10/25/2020 at 03:42PM

21
#185 - antoine mas / @aneomas

01/09/2021 at 10:23AM

22
#186 - Paweu1kZ nbNeyIhH / @yUQlwsFpRSzxJFh

05/16/2011 at 05:25PM

22
#187 - Mislav Marohnić / @mislav

12/05/2011 at 10:33PM

22
#188 - Tyler / @tylerbindon

04/07/2013 at 12:48AM

23
#189 - Michael Jin / @michaeljin

03/12/2012 at 12:56AM

23
#190 - Jacek Wysocki / @ex00

06/14/2012 at 12:22PM

23
#191 - Chris Brown / @engineercyb

09/13/2012 at 01:21AM

23
#192 - Connie Qi / @connieqi

06/12/2014 at 02:40PM

23
#193 - AssertFailure / @AssertFailure

12/05/2018 at 11:57AM

23
#194 - grantopher orange / @grantopher

07/23/2019 at 08:10PM

24
#195 - Daniel Lundin / @danielundin

11/21/2011 at 07:42PM

24
#196 - simonced / @simonced

09/28/2014 at 12:15AM

25
#197 - Oliver Christ / @0liverChrist

11/12/2013 at 09:44PM

25
#198 - Habib Alamin / @alaminium94

12/22/2015 at 10:40AM

25
#199 - Avian Y / @y_avian

06/27/2017 at 07:40PM

26
#200 - Matt Donahoe / @mdonahoe

10/13/2011 at 05:37AM

26
#201 - ajh / @AlexJHammel

12/24/2012 at 07:35PM

26
#202 - Gurukandhamoorthi / @Gurukandhamoor1

08/03/2017 at 06:19PM

26
#203 - Jakub Jasiński / @jakub__jasinski

08/07/2018 at 09:09PM

26
#204 - shahanavaz m / @shahanavazm

02/21/2022 at 05:04AM

26
#205 - steve / @steve35773420

03/04/2023 at 03:45PM

28
#206 - Matthew Broatch / @mnbroatch

07/09/2017 at 11:08PM

29
#207 - x03n046 / @x03n046

05/13/2022 at 12:32AM

30
#208 - Vojtěch Šívr / @VojtechSivr

06/09/2011 at 07:54PM

30
#209 - Christopher Erin / @MCNormalMode

09/21/2011 at 12:56AM

30
#210 - Tyler Breisacher / @tbreisacher

08/25/2012 at 09:34AM