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

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 12 remaining solutions by signing in and submitting your own entry
#13 Fraser Cormack / frasercrmck - Score: 99 - 03/31/16 @ 16:54
qas    group_id: <Esc>f,2s<CR>mail: <Esc>f'DF@yBOfull_name: <C-R>0<Esc>kO<Esc>i<C-R>0:<Esc>jj:s/[\.-]/ /g<CR>:s/ [^v]/\U&/g<CR>2j0q4@aZZ

0 comments

#14 Cristian Lupașcu / clupasq - Score: 105 - 03/31/16 @ 08:52
qqxx"eyi'cc<C-R>e<C-W><C-W><C-W><C-W>:<CR>    group_id: <C-R>-<CR>full_name: <C-R>e<Esc>Ypcwmail<Esc>+q4@qkqwW~wr ~~wD8-q2@w7GqwW~wr ww.~~wDq8+@wZZ

0 comments

#15 harpocrates744 / harpocrates744 - Score: 142 - 04/12/16 @ 05:56
3l0qj4lyt@0P r:a<CR>    group_id: <Tab><BS><Esc> a<CR><Esc>"0p^ifull_name: <Esc>f,i<CR>mail: <Esc>lxxf'Dj0q@j3@jkb~B~f.r 4kb~f.r fh~hhr 4kb~hhr b~4kh~f.r f-r l~4kb~bbr b~:wq<CR>

0 comments

#16 Nico Gevers / ingevious - Score: 143 - 05/08/16 @ 19:26
qqi    group_id: <Esc>lxf,xxvt'"ayi<CR>full_name: <Esc>l~/.<BS>\.<CR>r l~/@<CR>Domail: <Esc>"agpkkO<Esc>"ap?@<CR>Da:<Esc>4j^q4@q:%s/Van/van<CR>:%s/<Esc>7G/-<CR>xxi <Esc>jkuui <Esc>l~15G/-<CR>xi <Esc>l~ZZ

0 comments

Created by: vimgolf_ctrl_x

16 active golfers, 32 entries

Leaderboard (lowest score wins):
72
#1 - Urtica dioica / udioica

03/31/2016 at 04:57PM

72
#2 - Stanislav / prstad

08/23/2016 at 10:45AM

73
#3 - Saki Gw / Sakigw

03/31/2016 at 03:03PM

73
#4 - Smylers / Smylers2

03/31/2016 at 04:02PM

73
#5 - Pedro Santos / pedrosans

07/13/2016 at 07:41AM

85
#6 - Vaughn Cato / vaughncato

04/09/2016 at 06:28PM

85
#7 - Camusensei / Camusensei

04/14/2016 at 07:21AM

87
#8 - Dimitar Dimitrov / kurkale6ka

04/06/2016 at 03:34PM

88
#9 - Jan Bundesmann / ixjab

03/31/2016 at 12:09PM

89
#10 - Mister Knister / vimgolf_ctrl_x

03/31/2016 at 09:47AM

96
#11 - Jonny / Jonnytron

04/01/2016 at 02:19AM

98
#12 - Robber Toe / robbertoe

04/02/2016 at 01:30PM

99
#13 - Fraser Cormack / frasercrmck

03/31/2016 at 04:54PM

105
#14 - Cristian Lupașcu / clupasq

03/31/2016 at 08:52AM

142
#15 - harpocrates744 / harpocrates744

04/12/2016 at 05:56AM

143
#16 - Nico Gevers / ingevious

05/08/2016 at 07:26PM