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 49 remaining solutions by signing in and submitting your own entry
#50 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

50 active golfers, 152 entries

Leaderboard (lowest score wins):
38
#31 - Alexander Pivovarov / @pivizz

04/30/2019 at 06:01AM

40
#32 - Sean Griffin / @sgrif

08/13/2012 at 01:29AM

42
#33 - Tibor Claassen / @codebeige

06/22/2012 at 06:30AM

43
#34 - John Whitley / @johnwhitley

06/21/2012 at 06:25PM

45
#35 - Sebastian Korten / @FlashKorten

07/14/2012 at 11:01AM

45
#36 - 無ん垢の叫び / @john_ababa

09/16/2012 at 06:44AM

46
#37 - Raúl Jara / @rauljara

07/17/2012 at 05:41PM

46
#38 - q_revert / @q_revert

07/18/2012 at 05:16PM

48
#39 - Tom Cammann / @tea_sea

11/15/2012 at 04:53PM

50
#40 - Tom Sisk / @TomSisk

07/21/2012 at 06:52AM

52
#41 - Ryan O'Connell / @Salshammath

06/21/2012 at 05:12PM

57
#42 - Alec Chen / @alec929

11/03/2012 at 02:06PM

58
#43 - Oliver Christ / @0liverChrist

11/23/2013 at 09:35PM

59
#44 - ltn614 / @ltn614

10/26/2015 at 02:57PM

60
#45 - Ravi S Sinha / @ambidextrousTx

09/02/2012 at 07:44AM

60
#46 - James / @Dronak

09/04/2014 at 03:38PM

62
#47 - Phillip Gomez / @phillipgomez

06/23/2012 at 06:19AM

85
#48 - Marcus Lewis / @mrcslws

07/08/2012 at 06:47AM

206
#49 - Justin Knag / @justinknag

09/22/2014 at 09:17PM

254
#50 - Noel Alejandro / @noelrock333

06/22/2012 at 10:35PM