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 13 remaining solutions by signing in and submitting your own entry
#14 Daniel Habib / @danielhvs - Score: 201 - 08/18/20 @ 20:33
}d<CR>Dggw P dt"Gf1 <C-V>2kI:00<Esc>diW?Song1<CR>P <Esc>u/01<CR>wP D/04<CR>diw<Esc>udiW?01 00<CR>nwP D/08:<CR>diW?01<CR>wP D/la<CR><C-V>3jgUwgUlw.WWWW.WWWW.BD?Song3<CR>P dw/La<CR>D?Sonag<BS><BS>g1<CR>P dw/Bla<CR>D?Son2<CR>?Son<CR>P dw}d}gg<CR>VG:s/Artist/Bandam<BS><BS>name/g<CR>ZZ

0 comments


Created by: @dayshade7

14 active golfers, 42 entries

Leaderboard (lowest score wins):
65
#1 - Luoyb / @Luoyb

11/15/2023 at 04:28AM

65
#2 - Peppa Pig / @PeppaPi95550250

07/02/2024 at 08:35AM

65
#3 - nickGPT / @nickandbro

08/27/2024 at 05:21AM

67
#4 - Tanzeel Kazi / @tanzeelkazi

08/21/2020 at 01:42AM

69
#5 - Smylers / @Smylers2

11/21/2017 at 12:25PM

70
#6 - Borna Sadeghi / @borna_sadeghi

03/19/2021 at 07:19PM

113
#7 - Paul Inc / @hiniol1982

03/27/2020 at 07:43PM

115
#8 - Ben Hill / @KaizenSoze70

11/21/2017 at 01:19PM

125
#9 - Wolly Woodpecker / @WollyWoodpecker

11/20/2017 at 08:41PM

139
#10 - Sergio / @SergioVl12

08/07/2020 at 09:03AM

150
#11 - Muhsin AbdulMohammed / @muhsin____

08/17/2020 at 12:50PM

159
#12 - Bradley M. Small / @BradleySmall

11/20/2017 at 12:39AM

189
#13 - cocoita / @cocoita88

08/08/2020 at 01:09AM

201
#14 - Daniel Habib / @danielhvs

08/18/2020 at 08:33PM