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 @udioica:

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

18 active golfers, 34 entries

Solutions by @udioica:
72
#1 - Urtica dioica / @udioica

03/31/2016 at 04:57PM