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 @grant_7788:

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

272 active golfers, 992 entries

Solutions by @grant_7788:
18
#78 - Grant / @grant_7788

05/06/2019 at 02:21AM

19
#>122 - Grant / @grant_7788

05/06/2019 at 02:19AM

20
#>135 - Grant / @grant_7788

05/06/2019 at 02:18AM

21
#>163 - Grant / @grant_7788

05/06/2019 at 02:17AM

22
#>194 - Grant / @grant_7788

05/06/2019 at 02:15AM

23
#>224 - Grant / @grant_7788

05/06/2019 at 02:14AM

25
#>238 - Grant / @grant_7788

05/06/2019 at 02:14AM

26
#>245 - Grant / @grant_7788

05/06/2019 at 02:12AM

29
#>260 - Grant / @grant_7788

05/06/2019 at 02:11AM