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 55e704665f560803fa000001

Assign numbers to fields

You are given a list of space-separated strings. Add an increasing numeric prefix to each one.

Start file
CHROM POS ID REF ALT QUAL FILTER INFO FORMAT
End file
0:CHROM 1:POS 2:ID 3:REF 4:ALT 5:QUAL 6:FILTER 7:INFO 8:FORMAT

View Diff

1c1
< CHROM POS ID REF ALT QUAL FILTER INFO FORMAT
---
> 0:CHROM 1:POS 2:ID 3:REF 4:ALT 5:QUAL 6:FILTER 7:INFO 8:FORMAT

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 49 remaining solutions by signing in and submitting your own entry
#50 Lydia Cupery / @LCupery - Score: 84 - 11/22/18 @ 02:38
io<BS>0:h<BS><Esc>hh<C-A>uvlyeeehhPh<C-A>eeehPh<C-A><C-A><Esc>eeehhPh3<C-A>eeebPh4<C-A>eeebPh5<C-A>eeeb<C-P>Ph6<C-A>eewPh7<C-A>eewPh8<C-A><C-Z><C-Z>ZZ

0 comments


Created by: @lifepillar

50 active golfers, 90 entries

Leaderboard (lowest score wins):
20
#31 - Dan Moldovan / @Lenea92

09/03/2015 at 12:54PM

20
#32 - João Carvalho / @joaoCarvas

09/03/2015 at 01:14PM

20
#33 - Aleksey N. / @nag5001

09/05/2015 at 05:42PM

20
#34 - Nicholas Marrone / @nickmarrone

09/05/2015 at 09:07PM

20
#35 - Ben Vandervalk / @benvvalk

09/14/2015 at 04:41AM

20
#36 - Tom Cammann / @tea_sea

09/14/2015 at 03:33PM

20
#37 - Roland Hougs / @OminousWater

04/21/2016 at 07:55PM

20
#38 - Gurukandhamoorthi / @Gurukandhamoor1

09/03/2017 at 04:49PM

20
#39 - Timur Celik / @clktmr

12/21/2018 at 07:38PM

20
#40 - Chester Yap / @Chest_ErYap

08/13/2019 at 04:54PM

21
#41 - Yaroslav Kanarev / @yarosurabu

09/07/2015 at 03:32PM

21
#42 - Jorge / @jherreso

07/27/2017 at 02:48AM

22
#43 - oscar / @zonza_mas

09/02/2015 at 03:01PM

22
#44 - Joey / @joeyism101

09/04/2015 at 01:41PM

22
#45 - ORchard test / @BilboBrovall

09/22/2015 at 07:30PM

22
#46 - Martynas Bardauskas / @mbardauskas

08/02/2018 at 12:24PM

30
#47 - Bitt Faulk / @bittfaulk

03/11/2020 at 03:19PM

47
#48 - Andrew Michaud / @andrewjmichaud

09/03/2015 at 10:27PM

58
#49 - Wes Whitney / @wes_whitney

09/03/2015 at 02:43AM

84
#50 - Lydia Cupery / @LCupery

11/22/2018 at 02:38AM