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 56fcc3204a7725120c00c91c

SQL to YAML

Should be easy with vim, or not?

Start file
(1,'cleora.baugh@example.com','2016-02-12 09:00:09',NULL),
(2,'hedy.van-gossard@example.com','2016-02-12 09:00:09',NULL),
(2,'bryce.steeves@example.com','2016-02-12 09:00:09',NULL),
(3,'rodger.van-harland@example.com','2016-02-12 09:00:09',NULL),
(3,'jami.waid@example.com','2016-02-12 09:00:09',NULL),
End file
cleora.baugh:
    group_id: 1
    full_name: Cleora Baugh
    mail: cleora.baugh@example.com
hedy.van-gossard:
    group_id: 2
    full_name: Hedy van Gossard
    mail: hedy.van-gossard@example.com
bryce.steeves:
    group_id: 2
    full_name: Bryce Steeves
    mail: bryce.steeves@example.com
rodger.van-harland:
    group_id: 3
    full_name: Rodger van Harland
    mail: rodger.van-harland@example.com
jami.waid:
    group_id: 3
    full_name: Jami Waid
    mail: jami.waid@example.com

View Diff

1,5c1,20
< (1,'cleora.baugh@example.com','2016-02-12 09:00:09',NULL),
< (2,'hedy.van-gossard@example.com','2016-02-12 09:00:09',NULL),
< (2,'bryce.steeves@example.com','2016-02-12 09:00:09',NULL),
< (3,'rodger.van-harland@example.com','2016-02-12 09:00:09',NULL),
< (3,'jami.waid@example.com','2016-02-12 09:00:09',NULL),
---
> cleora.baugh:
>     group_id: 1
>     full_name: Cleora Baugh
>     mail: cleora.baugh@example.com
> hedy.van-gossard:
>     group_id: 2
>     full_name: Hedy van Gossard
>     mail: hedy.van-gossard@example.com
> bryce.steeves:
>     group_id: 2
>     full_name: Bryce Steeves
>     mail: bryce.steeves@example.com
> rodger.van-harland:
>     group_id: 3
>     full_name: Rodger van Harland
>     mail: rodger.van-harland@example.com
> jami.waid:
>     group_id: 3
>     full_name: Jami Waid
>     mail: jami.waid@example.com

Solutions by @gevious_:

Unlock 2 remaining solutions by signing in and submitting your own entry
Created by: @vimgolf_ctrl_x

22 active golfers, 52 entries

Solutions by @gevious_:
143
#22 - Nico Gevers / @gevious_

05/08/2016 at 07:26PM

144
#>22 - Nico Gevers / @gevious_

05/08/2016 at 07:38PM