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):
19
#1 - Urtica dioica / @udioica

09/02/2015 at 02:36PM

19
#2 - John Braxler / @braxler

09/02/2015 at 04:44PM

19
#3 - Mutter Mumble / @muttermumble

09/02/2015 at 05:09PM

19
#4 - Dmitry Zudochkin / @zudochkin

09/02/2015 at 06:27PM

19
#5 - Mart T / @xtimmu

09/02/2015 at 06:56PM

19
#6 - Petro Тrouq / @zulolosi

09/03/2015 at 04:38AM

19
#7 - A / @Tower_1980

09/03/2015 at 12:07PM

19
#8 - Gabriel Florit / @gabrielflorit

09/05/2015 at 08:29AM

19
#9 - JS / @jjohsan

09/05/2015 at 04:24PM

19
#10 - T A / @SirAviles

09/07/2015 at 09:45PM

19
#11 - Tamas Gal (Tom) / @tamasgal

09/10/2015 at 05:45AM

19
#12 - Mike Adams / @davis_cromwell

10/01/2015 at 06:39PM

19
#13 - Walker Boh / @walker_boh

10/05/2015 at 12:34PM

19
#14 - Jon Krause / @jkrause314

10/18/2015 at 01:33AM

19
#15 - merphant / @merphant

10/24/2015 at 06:05AM

19
#16 - Robert Clark / @rsclark2

01/16/2016 at 03:47PM

19
#17 - Carlos A Henríquez Q / @lagunex

03/13/2016 at 09:27PM

19
#18 - Miłosz Łakomy / @foobar01123

06/02/2016 at 08:38PM

19
#19 - Pierre Maoui / @p_maoui

01/01/2017 at 10:44AM

19
#20 - 梧桐王子 / @WutongYujie

09/27/2017 at 11:36AM

19
#21 - Bradley M. Small / @BradleySmall

11/23/2017 at 04:16AM

19
#22 - Arijus / @argshook

08/02/2018 at 12:21PM

19
#23 - mindgitrwx / @mindgitrwx

09/03/2020 at 05:15AM

19
#24 - Alex / @AlexanderHeatl2

07/07/2022 at 09:49PM

19
#25 - Jean George / @JeanGeo20504212

10/30/2023 at 10:50PM

19
#26 - Anaritus / @Anaritus

02/26/2024 at 07:49PM

19
#27 - Berel94 / @Berel94

03/14/2024 at 09:56PM

19
#28 - Peppa Pig / @PeppaPigSg

07/03/2024 at 01:44AM

19
#29 - nickGPT / @nickandbro

08/28/2024 at 03:56AM

20
#30 - Joel Gallant / @joelg236

09/02/2015 at 02:59PM