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):
58
#61 - Wes Whitney / @wes_whitney

09/03/2015 at 02:43AM

84
#62 - Lydia Cupery / @LCupery

11/22/2018 at 02:38AM