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

271 active golfers, 987 entries

Leaderboard (lowest score wins):
18
#31 - Blake Tereau / @BlakeTereau

06/22/2017 at 07:10PM

18
#32 - akanb / @GAkt6L6SlKhy8zA

06/28/2017 at 03:52AM

18
#33 - Bennett Bernardoni / @BBernardoni

06/28/2017 at 05:23PM

18
#34 - Михаил Добров / @mSuGfwFz2ZNvv5b

07/09/2017 at 09:21AM

18
#35 - Ben Hill / @KaizenSoze70

07/11/2017 at 12:06PM

18
#36 - Adrian Englhardt / @_englhardt

07/11/2017 at 12:55PM

18
#37 - Jon Barker / @j0nbarker

07/14/2017 at 09:03AM

18
#38 - Ryan McNamara / @MadDogMcNamara

07/16/2017 at 10:32PM

18
#39 - Gabriel Siqueira / @gabrielhsiq

07/27/2017 at 01:37PM

18
#40 - huho / @huho_xu

08/03/2017 at 09:29PM

18
#41 - Baine Wedlock / @BaineWedlock

08/13/2017 at 05:19PM

18
#42 - Philippe Brouillard / @_kurowasan

08/17/2017 at 12:19AM

18
#43 - Terry Ding / @TerryDing77

08/23/2017 at 07:07PM

18
#44 - Darren Weston / @dazWestonUK

08/30/2017 at 12:22PM

18
#45 - zava / @znl1087

09/07/2017 at 10:03AM

18
#46 - Birger / @Birger_Ni

10/01/2017 at 06:45PM

18
#47 - Le Lycal / @LeLycal

10/07/2017 at 09:01AM

18
#48 - Jon Krause / @jkrause314

10/10/2017 at 03:00PM

18
#49 - Turkey Man / @lvturkeyman

11/08/2017 at 08:53AM

18
#50 - Benoit Mortgat / @Benoit_Mortgat

11/14/2017 at 08:38AM

18
#51 - BareTull / @BareTull3

12/07/2017 at 05:37PM

18
#52 - TpouHuK / @TpouHuK_

01/17/2018 at 02:35PM

18
#53 - ParasamGateZero / @ParasamGateZero

01/22/2018 at 01:22AM

18
#54 - herbage / @herbage2

01/27/2018 at 10:15AM

18
#55 - brandon salmon / @Exiledz

01/28/2018 at 10:43AM

18
#56 - Guirec CORBEL / @GuirecCorbel

03/08/2018 at 12:30AM

18
#57 - GreenPinguin / @GreenPinguin2

03/12/2018 at 04:32PM

18
#58 - vimthrowaway / @vimgolf_throw

04/08/2018 at 08:57AM

18
#59 - DHM / @DHM29978992

04/14/2018 at 03:56AM

18
#60 - radrhin / @radrhin

04/20/2018 at 04:53PM