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

185 active golfers, 484 entries

Leaderboard (lowest score wins):
17
#91 - Ben Somers / @somanyrobots

11/30/2011 at 01:45AM

17
#92 - Gabriel Barta / @gbarta

12/02/2011 at 10:06AM

17
#93 - Martin Aumueller / @aumuell

12/14/2011 at 09:55AM

17
#94 - Jon Olin / @8BitTree

01/02/2012 at 02:10AM

17
#95 - derp derp / @derp__

01/03/2012 at 08:07AM

17
#96 - Vladyslav Marsikov / @gagabogolo

01/05/2012 at 10:01PM

17
#97 - Siu / @davidsinuela

02/15/2012 at 10:51PM

17
#98 - 無ん垢の叫び / @john_ababa

02/27/2012 at 01:05PM

17
#99 - dominique pellé / @vimgolfisto

03/10/2012 at 05:35PM

17
#100 - cyberrodent_n / @cyberRodent_n

03/30/2012 at 06:17AM

17
#101 - Augustin Trancart / @autra42

04/23/2012 at 11:43AM

17
#102 - Rod Knowlton / @codelahoma

04/27/2012 at 12:31AM

17
#103 - Kerson Hsiao / @KersonHsiao

05/08/2012 at 10:48AM

17
#104 - Ben Friedland / @bfriedland174

05/17/2012 at 09:31AM

17
#105 - Arckos / @ArckosJungo

06/02/2013 at 11:25AM

17
#106 - Woojung Kim 김우중 / @_kimwz

07/17/2013 at 11:25AM

17
#107 - Carl Shotwell / @carl_talks

07/22/2013 at 07:01PM

17
#108 - Michael Lemley / @audienceofnone

07/23/2013 at 07:16PM

17
#109 - apof / @9pof

09/13/2013 at 06:55AM

17
#110 - Joonas Pihlajamaa / @jokkebk

02/24/2014 at 04:05PM

17
#111 - Logan Chadderdon / @lwchadderdon

09/01/2014 at 12:29AM

17
#112 - Austin Smith / @AssailantLF

12/05/2014 at 07:39PM

18
#113 - Jordan Lewis / @JordanALewis

05/13/2011 at 07:44PM

18
#114 - Eduardo Ruiz Macias / @eduarbo

05/13/2011 at 07:45PM

18
#115 - Steven Grady / @steven807

05/27/2011 at 11:29PM

18
#116 - Steven / @rockarts

07/18/2011 at 10:29PM

18
#117 - Brian Cooke / @bricooke

08/31/2011 at 01:12PM

18
#118 - はまーん(浜田恭平) / @haman29

09/25/2011 at 11:21AM

18
#119 - Joe Fredette / @jfredett

10/10/2011 at 10:52PM

18
#120 - Jonathan Perichon / @jperichon

10/14/2011 at 05:05AM