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

62 active golfers, 116 entries

Leaderboard (lowest score wins):
20
#31 - Kai Yuan / @kentyuan

09/02/2015 at 03:07PM

20
#32 - kungfuchad / @kungfuchad

09/02/2015 at 05:57PM

20
#33 - James / @Dronak

09/02/2015 at 08:37PM

20
#34 - Restroom Sounds / @RestroomSounds

09/03/2015 at 04:04AM

20
#35 - Sam Grigg / @samgrigg

09/03/2015 at 05:24AM

20
#36 - Paulo Romeira / @pauloromeira

09/03/2015 at 08:57AM

20
#37 - Dan Moldovan / @Lenea92

09/03/2015 at 12:54PM

20
#38 - João Carvalho / @joaoCarvas

09/03/2015 at 01:14PM

20
#39 - Aleksey N. / @nag5001

09/05/2015 at 05:42PM

20
#40 - Nicholas Marrone / @nickmarrone

09/05/2015 at 09:07PM

20
#41 - Ben Vandervalk / @benvvalk

09/14/2015 at 04:41AM

20
#42 - T / @tea_sea

09/14/2015 at 03:33PM

20
#43 - Roland Hougs / @roland_b_h

04/21/2016 at 07:55PM

20
#44 - Gurukandhamoorthi / @Gurukandhamoor1

09/03/2017 at 04:49PM

20
#45 - Timur Celik / @clktmr

12/21/2018 at 07:38PM

20
#46 - Chester Yap / @Chest_ErYap

08/13/2019 at 04:54PM

20
#47 - vimgolfaccfekxh / @vimgolfaccfekxh

10/30/2022 at 09:00PM

20
#48 - Divvy C. / @divvy_c

08/12/2023 at 03:56PM

20
#49 - jonas-grobe / @jonas-grobe

02/04/2024 at 01:13PM

20
#50 - constap / @constap

05/13/2024 at 06:49PM

21
#51 - Yaroslav Kanarev / @yarosurabu

09/07/2015 at 03:32PM

21
#52 - Jorge / @jherreso

07/27/2017 at 02:48AM

21
#53 - pikjes / @pikjes2

07/16/2021 at 05:48PM

22
#54 - oscar / @zonza_mas

09/02/2015 at 03:01PM

22
#55 - Joey / @joeyism101

09/04/2015 at 01:41PM

22
#56 - ORchard test / @BilboBrovall

09/22/2015 at 07:30PM

22
#57 - Martynas Bardauskas / @mbardauskas

08/02/2018 at 12:24PM

29
#58 - Olivier Bégassat / @zk_evm

06/13/2023 at 12:48PM

30
#59 - Bitt Faulk / @bittfaulk

03/11/2020 at 03:19PM

47
#60 - Andrew Michaud / @andrewjmichaud

09/03/2015 at 10:27PM