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

Unlock 1 remaining solutions by signing in and submitting your own entry
Created by: @dayshade7

14 active golfers, 42 entries

Solutions by @BradleySmall:
159
#12 - Bradley M. Small / @BradleySmall

11/20/2017 at 12:39AM