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

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

275 active golfers, 1008 entries

Solutions by @bornintheflames:
18
#99 - Remus Dalrymple / @bornintheflames

12/23/2023 at 05:34AM

19
#>131 - Remus Dalrymple / @bornintheflames

12/23/2023 at 05:33AM

20
#>139 - Remus Dalrymple / @bornintheflames

12/23/2023 at 05:33AM

21
#>169 - Remus Dalrymple / @bornintheflames

12/23/2023 at 05:33AM

22
#>201 - Remus Dalrymple / @bornintheflames

12/23/2023 at 05:32AM

24
#>235 - Remus Dalrymple / @bornintheflames

12/23/2023 at 05:31AM

25
#>242 - Remus Dalrymple / @bornintheflames

12/23/2023 at 05:31AM

26
#>250 - Remus Dalrymple / @bornintheflames

12/23/2023 at 05:30AM

27
#>255 - Remus Dalrymple / @bornintheflames

12/23/2023 at 05:28AM

58
#>275 - Remus Dalrymple / @bornintheflames

12/23/2023 at 05:27AM