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):
35
#31 - Daniel Lundin / @danielundin

06/25/2012 at 10:28AM

35
#32 - cj / @cj01101

10/22/2013 at 06:04PM

36
#33 - Caleb McDaniel / @wcaleb

07/26/2012 at 07:37PM

37
#34 - Pandae / @psasqw

06/22/2012 at 11:10AM

37
#35 - Domon / @Domon

09/13/2012 at 05:47PM

38
#36 - Nipunn Koorapati / @nipunn1313

07/18/2012 at 05:40AM

38
#37 - Alexander Pivovarov / @pivizz

04/30/2019 at 06:01AM

40
#38 - Sean Griffin / @sgrif

08/13/2012 at 01:29AM

42
#39 - Tibor Claassen / @codebeige

06/22/2012 at 06:30AM

43
#40 - John Whitley / @johnwhitley

06/21/2012 at 06:25PM

44
#41 - wemgulf / @wemgulfer

11/02/2023 at 05:17PM

45
#42 - Sebastian Korten / @FlashKorten

07/14/2012 at 11:01AM

45
#43 - じょんあば / @john_ababa

09/16/2012 at 06:44AM

45
#44 - James / @Dronak

11/04/2022 at 03:07PM

46
#45 - Raúl Jara / @rauljara

07/17/2012 at 05:41PM

46
#46 - q_revert / @q_revert

07/18/2012 at 05:16PM

47
#47 - shahanavaz m / @shahanavazm

03/20/2024 at 07:05PM

48
#48 - T / @tea_sea

11/15/2012 at 04:53PM

50
#49 - Tom Sisk / @TomSisk

07/21/2012 at 06:52AM

52
#50 - Ryan O'Connell / @Salshammath

06/21/2012 at 05:12PM

57
#51 - Alec Chen / @alec929

11/03/2012 at 02:06PM

58
#52 - Oliver Christ / @0liverChrist

11/23/2013 at 09:35PM

59
#53 - ltn614 / @ltn614

10/26/2015 at 02:57PM

60
#54 - Ravi S Sinha / @ambidextrousTx

09/02/2012 at 07:44AM

62
#55 - Phillip Gomez / @phillipgomez

06/23/2012 at 06:19AM

85
#56 - Marcus Lewis / @mrcslws

07/08/2012 at 06:47AM

206
#57 - Justin Knag / @justinknag

09/22/2014 at 09:17PM

254
#58 - Noel Alejandro / @noelrock333

06/22/2012 at 10:35PM