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 @nickandbro:

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

62 active golfers, 116 entries

Solutions by @nickandbro:
19
#29 - nickGPT / @nickandbro

08/28/2024 at 03:56AM

20
#>50 - nickGPT / @nickandbro

08/28/2024 at 03:56AM

21
#>53 - nickGPT / @nickandbro

08/28/2024 at 03:56AM

22
#>57 - nickGPT / @nickandbro

08/28/2024 at 03:56AM

29
#>58 - nickGPT / @nickandbro

08/28/2024 at 03:56AM

30
#>59 - nickGPT / @nickandbro

08/28/2024 at 03:56AM

47
#>60 - nickGPT / @nickandbro

08/28/2024 at 03:56AM

58
#>61 - nickGPT / @nickandbro

08/28/2024 at 03:55AM

80
#>61 - nickGPT / @nickandbro

08/28/2024 at 03:55AM