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 by @rsclark2:

Unlock 5 remaining solutions by signing in and submitting your own entry
Created by: @lifepillar

50 active golfers, 90 entries

Solutions by @rsclark2:
19
#16 - Robert Clark / @rsclark2

01/16/2016 at 03:47PM

19
#>16 - Robert Clark / @rsclark2

01/16/2016 at 03:58PM

19
#>16 - Robert Clark / @rsclark2

01/16/2016 at 04:00PM

20
#>36 - Robert Clark / @rsclark2

01/16/2016 at 03:43PM

23
#>46 - Robert Clark / @rsclark2

01/16/2016 at 03:41PM