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 591903ff3060ed0b32000007

Adam's challenge

Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.

Start file
<div>
    <span class="text-base text-dark wt-normal">
        @icon('line-graph', 'icon-sm text-dark-faint m-r-4') ${{ number_format($product->totalRevenue() / 100) }}
    </span>
    <span class="text-base text-dark wt-normal">
        @icon('users', 'icon-sm text-dark-faint m-r-4') {{ $product->totalPurchases() }}
    </span>
</div>
End file
<div>
    <span class="text-base text-dark wt-bold">
        @icon('line-graph', 'icon-sm text-dark-faint m-r-2') ${{ number_format($product->totalRevenue() / 100) }}
    </span>
    <span class="text-base text-dark wt-bold">
        @icon('users', 'icon-sm text-dark-faint m-r-2') {{ $product->totalPurchases() }}
    </span>
</div>

View Diff

2,3c2,3
<     <span class="text-base text-dark wt-normal">
<         @icon('line-graph', 'icon-sm text-dark-faint m-r-4') ${{ number_format($product->totalRevenue() / 100) }}
---
>     <span class="text-base text-dark wt-bold">
>         @icon('line-graph', 'icon-sm text-dark-faint m-r-2') ${{ number_format($product->totalRevenue() / 100) }}
5,6c5,6
<     <span class="text-base text-dark wt-normal">
<         @icon('users', 'icon-sm text-dark-faint m-r-4') {{ $product->totalPurchases() }}
---
>     <span class="text-base text-dark wt-bold">
>         @icon('users', 'icon-sm text-dark-faint m-r-2') {{ $product->totalPurchases() }}

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 196 remaining solutions by signing in and submitting your own entry
#197 Krystle / @krystle_test - Score: 55 - 05/17/17 @ 06:32
:%s/t<BS>wt-normal/wt-bold<CR><Down><Right>i:w<BS><BS><Esc>:w%<BS><BS><BS>:%s/r-4/r-2<CR><Esc>:wq<CR>

0 comments


Created by: @TresErresCo

197 active golfers, 632 entries

Leaderboard (lowest score wins):
23
#151 - almostdvs / @almostdvs

05/23/2017 at 02:26AM

23
#152 - squid / @zerosquid

05/26/2017 at 11:58PM

23
#153 - Kranzy / @CrazyKranzy

05/30/2017 at 02:42AM

23
#154 - James / @Dronak

05/31/2017 at 01:09AM

23
#155 - Richard Ivan / @Richard_Ivan

06/02/2017 at 08:54PM

23
#156 - Will Gunther / @WillGunther

06/11/2017 at 07:01PM

23
#157 - Mayank Suman / @mayank_suman

06/24/2017 at 06:04PM

23
#158 - Andrew Sz / @RoboAndy

06/29/2017 at 09:32AM

23
#159 - Pfhor / @PfhorShark

07/02/2017 at 03:13PM

23
#160 - Jacob Buete / @JBuete

07/07/2017 at 02:05PM

23
#161 - 黒澤亮二 / @rjkuro

07/22/2017 at 12:11PM

23
#162 - Jonas Sunde V / @sunde_v

08/04/2017 at 03:25PM

23
#163 - Sebastian / @echsberde

08/20/2017 at 09:35PM

23
#164 - aselaIllayaparachchi / @asela38

08/24/2017 at 08:07AM

23
#165 - David / @Latiku

08/25/2017 at 01:30PM

23
#166 - chaotic / @laersn

09/07/2018 at 12:24PM

23
#167 - Aubrey Lavigne / @AubreySLavigne

10/20/2018 at 06:30PM

24
#168 - Edouard Piette / @EdPiette

05/19/2017 at 01:00PM

24
#169 - David Gustavsson / @mrGustaphe

06/08/2017 at 06:25AM

24
#170 - Benoit Bou / @3enoit3

06/17/2017 at 10:25AM

24
#171 - Juliette but spooky / @namebrandloser

10/26/2018 at 11:46PM

25
#172 - Ryan Coopersmith / @RyanCoopersmit1

06/03/2017 at 03:50PM

25
#173 - Avian Y / @y_avian

06/27/2017 at 03:26PM

25
#174 - Paul Inc / @hiniol1982

08/01/2017 at 09:03PM

25
#175 - Ahmed Hasan / @microbialwalrus

12/23/2017 at 04:13AM

25
#176 - Akilan Anbalagan / @akilananb

03/27/2018 at 03:46AM

25
#177 - sspan / @sspantz

07/12/2018 at 01:49AM

26
#178 - python-tweepy / @python_tweepy

05/16/2017 at 03:55AM

26
#179 - Alex Hallam / @alexhallam6_28

06/04/2017 at 05:22AM

26
#180 - Kieron Browne / @KieronBrowne1

06/30/2017 at 09:10AM