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 5a0f4f6591974a039c000007

mp3 - Cutlist

An audio CD was accidentally ripped into one single mp3 file. A dummy cue-file now needs to be filled out with the correct values to get single mp3 files.

Start file
FILE "FILENAME.MP3" MP3
  TRACK 01 AUDIO
    TITLE "Song1"
    PERFORMER "Artist"
    INDEX 01 0:00
  TRACK 02 AUDIO
    TITLE "Song2"
    PERFORMER "Artist"
    INDEX 01 00:00:00
  TRACK 03 AUDIO
    TITLE "Song3"
    PERFORMER "Artist"
    INDEX 01 00:00:00


Bandname_Albumname.mp3
1) 00:00 - la la la
2) 04:14 - bla bla
3) 08:21 - cha cha
End file
FILE "Bandname_Albumname.mp3" MP3
  TRACK 01 AUDIO
    TITLE "La La La"
    PERFORMER "Bandname"
    INDEX 01 00:00:00
  TRACK 02 AUDIO
    TITLE "Bla Bla"
    PERFORMER "Bandname"
    INDEX 01 04:14:00
  TRACK 03 AUDIO
    TITLE "Cha Cha"
    PERFORMER "Bandname"
    INDEX 01 08:21:00

View Diff

1c1
< FILE "FILENAME.MP3" MP3
---
> FILE "Bandname_Albumname.mp3" MP3
3,8c3,4
<     TITLE "Song1"
<     PERFORMER "Artist"
<     INDEX 01 0:00
<   TRACK 02 AUDIO
<     TITLE "Song2"
<     PERFORMER "Artist"
---
>     TITLE "La La La"
>     PERFORMER "Bandname"
9a6,9
>   TRACK 02 AUDIO
>     TITLE "Bla Bla"
>     PERFORMER "Bandname"
>     INDEX 01 04:14:00
11,19c11,13
<     TITLE "Song3"
<     PERFORMER "Artist"
<     INDEX 01 00:00:00
< 
< 
< Bandname_Albumname.mp3
< 1) 00:00 - la la la
< 2) 04:14 - bla bla
< 3) 08:21 - cha cha
---
>     TITLE "Cha Cha"
>     PERFORMER "Bandname"
>     INDEX 01 08:21:00

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 3 remaining solutions by signing in and submitting your own entry
#4 Bradley M. Small / BradleySmall - Score: 159 - 11/20/17 @ 00:39
16GD<C-O>2wvi"p3jci"Bandname<Esc>4j.4j.jbEbbblr1hr2bblr84kr4wws214<Esc><Right>xbx4j8ka:00<Esc>Bi0<Esc>17G<C-V>jjtcxgv:s/\w*/\u&<BS>&/g<CR>D11G2wciw<C-R>Puu<Esc>uuD11G2wviwp18GD7G2wviwp17GD3G2wviwp14GdGZZ

0 comments

Created by: dayshade7

4 active golfers, 12 entries

Leaderboard (lowest score wins):
69
#1 - Smylers / Smylers2

11/21/2017 at 12:25PM

115
#2 - Ben Hill / KaizenSoze70

11/21/2017 at 01:19PM

125
#3 - Wolly Woodpecker / WollyWoodpecker

11/20/2017 at 08:41PM

159
#4 - Bradley M. Small / BradleySmall

11/20/2017 at 12:39AM