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 by @WutongYujie:

Unlock 12 remaining solutions by signing in and submitting your own entry
Created by: @TresErresCo

270 active golfers, 984 entries

Solutions by @WutongYujie:
18
#18 - 梧桐王子 / @WutongYujie

05/22/2017 at 01:15AM

18
#>18 - 梧桐王子 / @WutongYujie

05/22/2017 at 01:17AM

18
#>51 - 梧桐王子 / @WutongYujie

12/11/2017 at 02:43PM

19
#>115 - 梧桐王子 / @WutongYujie

12/11/2017 at 02:42PM

20
#>132 - 梧桐王子 / @WutongYujie

05/22/2017 at 01:14AM

20
#>133 - 梧桐王子 / @WutongYujie

12/11/2017 at 02:41PM

21
#>142 - 梧桐王子 / @WutongYujie

05/22/2017 at 01:13AM

22
#>168 - 梧桐王子 / @WutongYujie

05/22/2017 at 01:12AM

22
#>184 - 梧桐王子 / @WutongYujie

12/11/2017 at 02:38PM

23
#>219 - 梧桐王子 / @WutongYujie

12/11/2017 at 02:38PM

25
#>233 - 梧桐王子 / @WutongYujie

12/11/2017 at 02:37PM

30
#>258 - 梧桐王子 / @WutongYujie

12/11/2017 at 02:18PM