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 4fe354e8f73248000100002d

Inconsistent real estate paste

Format a hand-typed real estate listing that uses inconsistent punctuation into four sections

Start file
PROPERTY ADDRESS:  LOT 20, 10 FORTH LANE, WATERLOO, NC
ACREAGE
- .842 ACRE
PRICE
: - $140,500.00
CONTACT INFORMATION
:   JOE & MARGE ALLAN
                                         
81 RIDGE DRIVE
                                          PROVIDENCE
, RI  02813
                                         
1-555-231-2135
End file
PROPERTY ADDRESS

LOT
20, 10 FORTH LANE, WATERLOO, NC

ACREAGE

.842 ACRE

PRICE

$140
,500.00

CONTACT INFORMATION

JOE
& MARGE ALLAN
81 RIDGE DRIVE
PROVIDENCE
, RI  02813
1-555-231-2135

View Diff

1,7c1,18
< PROPERTY ADDRESS:  LOT 20, 10 FORTH LANE, WATERLOO, NC
< ACREAGE - .842 ACRE
< PRICE: - $140,500.00
< CONTACT INFORMATION:   JOE & MARGE ALLAN
<                                           81 RIDGE DRIVE
<                                           PROVIDENCE, RI  02813
<                                          1-555-231-2135
---
> PROPERTY ADDRESS
>
> LOT 20, 10 FORTH LANE, WATERLOO, NC
>
> ACREAGE
>
> .842 ACRE
>
> PRICE
>
> $140,500.00
>
> CONTACT INFORMATION
>
> JOE & MARGE ALLAN
> 81 RIDGE DRIVE
> PROVIDENCE, RI  02813
> 1-555-231-2135

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 57 remaining solutions by signing in and submitting your own entry
#58 Noel Alejandro / @noelrock333 - Score: 254 - 06/22/12 @ 22:35
:4<BS>%s/[.<BS>: -]/\r<CR>I<Esc><Left><Right>Iwd<Esc><BS><Del><Del>$(<BS><Right>d(jkd(u<Down><Right><Left>dwjkkddkwddud(:%s/[0<BS>: -]/\r<CR>i<BS>/<BS>-<Esc>13Gi<BS> <Esc>()*{{}}<Esc>12GD(<Esc>uD(<Esc>ui<BS><BS><BS><CR><Esc>k<Esc>ki<BS> <Esc>10G9Gde6Ghx<Esc>3GD(ui<BS><BS>k<BS><Esc>ki<BS> <Esc>$i<Esc>o3$<Esc>u<Esc>1$<Esc><Esc><Esc><Esc>1$2$1$1$1$o1<BS><Esc>$1$1G$o<Esc>7G$o<Esc>%:%s<BS><BS>1<BS>11,<BS>s,<BS>,1,10<BS><BS><BS><BS><BS>/1/10<BS><BS>$1<CR><Esc>$o<Esc>4ji<BS> <Esc>3hi<CR><Esc>32<BS><BS>2<Esc>18Gi<BS> <Esc>:w<CR><C-W>q

0 comments


Created by: @Salshammath

58 active golfers, 216 entries

Leaderboard (lowest score wins):
24
#1 - Tim Chase / @gumnos

06/21/2012 at 06:08PM

24
#2 - Conner McDaniel / @connermcd

06/21/2012 at 07:08PM

24
#3 - Paul Tarjan / @ptarjan

07/29/2012 at 05:02PM

24
#4 - Ryan Patterson / @CGamesPlay

07/29/2012 at 05:23PM

24
#5 - lwjef / @lwjef

08/17/2012 at 11:29AM

24
#6 - Victor Ramirez / @virako

10/20/2012 at 12:58AM

24
#7 - John Braxler / @braxler

06/09/2014 at 04:23PM

24
#8 - Miłosz Łakomy / @foobar01123

09/16/2020 at 10:12AM

24
#9 - Arya Kumar / @SusSquirrel

05/26/2021 at 02:16AM

24
#10 - blabla zincou / @BZincou

04/02/2022 at 08:45PM

24
#11 - Qing Liu / @poeminlash

08/14/2022 at 01:55AM

24
#12 - Peppa Pig / @PeppaPigSg

07/03/2024 at 07:06AM

24
#13 - nickGPT / @nickandbro

08/28/2024 at 08:44PM

25
#14 - Federico Galassi / @federicogalassi

06/22/2012 at 04:37PM

25
#15 - Urtica dioica / @udioica

12/12/2012 at 08:53AM

26
#16 - Justin Love / @wondible

06/22/2012 at 02:08PM

26
#17 - Emile Swarts / @EmileSwarts

08/19/2012 at 12:32PM

26
#18 - Sune Simonsen / @sunesimonsen

08/27/2012 at 06:33PM

26
#19 - Édouard M'tou / @DouardM

10/09/2012 at 11:41AM

28
#20 - Daniel S / @smatter0ne

07/17/2012 at 10:17AM

28
#21 - Reed Riley / @ReedRile

08/12/2012 at 07:24PM

31
#22 - James Davis / @tripvg

08/05/2012 at 12:00AM

32
#23 - Kerson Hsiao / @KersonHsiao

06/22/2012 at 07:30AM

32
#24 - h_east (トロッコ6個) / @h_east

06/22/2012 at 07:30AM

32
#25 - Joonas Pihlajamaa / @jokkebk

03/15/2014 at 10:47AM

33
#26 - countime / @countime

11/30/2024 at 12:21AM

34
#27 - ☈king / @SharpsawDotOrg

06/24/2012 at 07:12AM

34
#28 - Rod Knowlton / @codelahoma

07/08/2012 at 01:08AM

34
#29 - Michael Limiero / @michaellimiero

08/14/2012 at 04:47PM

34
#30 - tmr / @tmr314

09/06/2012 at 03:24PM