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):
16
#61 - James Casey / @hanavi

12/22/2019 at 08:54PM

16
#62 - mevmev / @mevmev8

10/20/2021 at 09:52AM

16
#63 - Jean George / @JeanGeo20504212

04/12/2022 at 10:53AM

16
#64 - Omar Alawadhi / @OmarAla59544225

10/17/2022 at 10:46PM

17
#65 - xhtmlforum / @xhtmlforum

05/13/2011 at 08:09PM

17
#66 - Shawn / @sartak

05/13/2011 at 08:13PM

17
#67 - Pete Johns / @johnsyweb

05/13/2011 at 10:29PM

17
#68 - h_east (トロッコ6個) / @h_east

05/14/2011 at 12:04AM

17
#69 - Wei Dai / @clvv42

05/14/2011 at 07:28AM

17
#70 - Dmitry Ivanov / @ethercrow

05/14/2011 at 01:21PM

17
#71 - Thom Hughes / @thom_hughes_1

05/14/2011 at 04:44PM

17
#72 - Pavlo Klets / @p01nt

05/14/2011 at 05:13PM

17
#73 - tdirrenb / @tdirrenb

05/15/2011 at 06:07PM

17
#74 - Mohammed / @mbadran

05/16/2011 at 02:10AM

17
#75 - Malaney / @iamjh

05/17/2011 at 03:42AM

17
#76 - Oleg Roshupkin / @jjjahson

05/18/2011 at 04:29AM

17
#77 - Dragan Cvetinovic / @kawkafi

05/21/2011 at 10:53AM

17
#78 - Justin Hale / @jxl

05/25/2011 at 12:04PM

17
#79 - Utkarsh Kukreti / @utkarshkukreti

05/26/2011 at 11:05PM

17
#80 - icdark / @icdark

05/29/2011 at 11:51PM

17
#81 - Marco Ippolito / @maroloccio

05/31/2011 at 10:46PM

17
#82 - Emile Swarts / @EmileSwarts

06/08/2011 at 03:53PM

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

06/19/2011 at 08:51AM

17
#84 - Peter Anselmo / @peter_anselmo

06/23/2011 at 06:58PM

17
#85 - Johan Sveholm / @rymdtjuren

06/24/2011 at 02:26AM

17
#86 - Dan Masquelier / @danmasq

07/02/2011 at 05:25PM

17
#87 - 42hitchhiker / @42hitchhiker

07/06/2011 at 06:35AM

17
#88 - Corey Glynn / @albedoa

07/07/2011 at 06:41AM

17
#89 - Zak van der Merwe / @zakkuuu

07/08/2011 at 07:37PM

17
#90 - Dave / @zzdave13

07/14/2011 at 10:29PM