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

204 active golfers, 574 entries

Leaderboard (lowest score wins):
17
#61 - Wei Dai / @clvv42

05/14/2011 at 07:28AM

17
#62 - Dmitry Ivanov / @ethercrow

05/14/2011 at 01:21PM

17
#63 - Thom Hughes / @thom_hughes_1

05/14/2011 at 04:44PM

17
#64 - Pavlo Klets / @p01nt

05/14/2011 at 05:13PM

17
#65 - tdirrenb / @tdirrenb

05/15/2011 at 06:07PM

17
#66 - Mohammed / @mbadran

05/16/2011 at 02:10AM

17
#67 - Malaney / @iamjh

05/17/2011 at 03:42AM

17
#68 - Oleg Roshupkin / @jjjahson

05/18/2011 at 04:29AM

17
#69 - Dragan Cvetinovic / @kawkafi

05/21/2011 at 10:53AM

17
#70 - Justin Hale / @jxl

05/25/2011 at 12:04PM

17
#71 - Utkarsh Kukreti / @utkarshkukreti

05/26/2011 at 11:05PM

17
#72 - icdark / @icdark

05/29/2011 at 11:51PM

17
#73 - Marco Ippolito / @maroloccio

05/31/2011 at 10:46PM

17
#74 - Emile Swarts / @EmileSwarts

06/08/2011 at 03:53PM

17
#75 - not so punk :] / @notsopunk

06/19/2011 at 08:51AM

17
#76 - Peter Anselmo / @peter_anselmo

06/23/2011 at 06:58PM

17
#77 - Johan Sveholm / @rymdtjuren

06/24/2011 at 02:26AM

17
#78 - Dan Masquelier / @danmasq

07/02/2011 at 05:25PM

17
#79 - 42hitchhiker / @42hitchhiker

07/06/2011 at 06:35AM

17
#80 - Corey Glynn / @albedoa

07/07/2011 at 06:41AM

17
#81 - Zak van der Merwe / @zakkuuu

07/08/2011 at 07:37PM

17
#82 - Dave / @zzdave13

07/14/2011 at 10:29PM

17
#83 - Sammasati / @sammasati0

07/16/2011 at 03:02AM

17
#84 - Robert Robotter / @robrob12

07/19/2011 at 09:04AM

17
#85 - Pierre / @Pihour

07/27/2011 at 07:43PM

17
#86 - Enric Lluelles / @enriclluelles

07/29/2011 at 01:19AM

17
#87 - Hu Junfeng / @junfeng

08/05/2011 at 06:51AM

17
#88 - Stephen Gordon / @DubsGordon

08/08/2011 at 10:06PM

17
#89 - William Wolf / @throughnothing

08/31/2011 at 04:46AM

17
#90 - Theodore Finn Gast / @tfgast

09/01/2011 at 08:17PM