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 21 remaining solutions by signing in and submitting your own entry
#22 Nico Gevers / @gevious_ - 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

22 active golfers, 52 entries

Leaderboard (lowest score wins):
71
#1 - Peppa Pig / @PeppaPigSg

07/02/2024 at 10:28PM

72
#2 - Urtica dioica / @udioica

03/31/2016 at 04:57PM

72
#3 - Stanislav / @prstad

08/23/2016 at 10:45AM

72
#4 - John Braxler / @braxler

09/25/2019 at 08:21PM

72
#5 - A A A / @37fatos

10/21/2021 at 01:22AM

73
#6 - Saki Gw / @Sakigw

03/31/2016 at 03:03PM

73
#7 - "Smylers" / @Smylers2

03/31/2016 at 04:02PM

73
#8 - Pedro Santos / @pedrosans

07/13/2016 at 07:41AM

76
#9 - Jon Krause / @jkrause314

12/14/2020 at 03:43PM

85
#10 - Vaughn Cato / @vaughncato

04/09/2016 at 06:28PM

85
#11 - Camusensei / @Camusensei

04/14/2016 at 07:21AM

86
#12 - mevmev / @mevmev8

09/25/2021 at 05:36PM

87
#13 - Dimitar Dimitrov / @kurkale6ka

04/06/2016 at 03:34PM

88
#14 - Jan Bundesmann / @janbundesmann

03/31/2016 at 12:09PM

89
#15 - Mister Knister / @vimgolf_ctrl_x

03/31/2016 at 09:47AM

96
#16 - Jonny - Male 2.0.37 / @Jonnytron

04/01/2016 at 02:19AM

98
#17 - Robber Toe / @robbertoe

04/02/2016 at 01:30PM

98
#18 - nickGPT / @nickandbro

08/28/2024 at 03:22AM

99
#19 - Fraser Cormack / @frasercrmck

03/31/2016 at 04:54PM

105
#20 - Cristian Lupașcu / @clupasq

03/31/2016 at 08:52AM

142
#21 - harpocrates744 / @harpocrates744

04/12/2016 at 05:56AM

143
#22 - Nico Gevers / @gevious_

05/08/2016 at 07:26PM