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):
18
#61 - platypusDancing / @platypusDancing

05/03/2018 at 07:05PM

18
#62 - c0llision / @sh3llcode

05/27/2018 at 01:07PM

18
#63 - 石奕心 / @allenshih1

06/11/2018 at 08:20PM

18
#64 - Daniël De Koker / @daniel_koker

07/01/2018 at 09:10PM

18
#65 - 村橋究理基M.Kuriki@北大 / @mkuriki_

08/14/2018 at 12:22AM

18
#66 - Hugo / @szeyattai

08/21/2018 at 07:10AM

18
#67 - Jeff / @sir_wiggles3

09/09/2018 at 06:22AM

18
#68 - Rasmus Bergström / @JRasmusBm

09/29/2018 at 09:45PM

18
#69 - Roger Bongers / @RogerBongers

10/05/2018 at 09:36PM

18
#70 - Benjamin Kiesl / @BenjaminKiesl

10/20/2018 at 11:57AM

18
#71 - Sxcy / @SxcyX

10/22/2018 at 08:53PM

18
#72 - vg / @vg53210350

10/28/2018 at 07:48PM

18
#73 - Dax / @zacoxi

11/09/2018 at 05:24AM

19
#74 - SIGHODL / @AssafLavie

05/18/2017 at 06:24PM

19
#75 - some call me mattp / @mattpep

05/22/2017 at 03:05PM

19
#76 - Léo Ercolanelli / @ercolanellileo

05/23/2017 at 09:27PM

19
#77 - Christian Abbott / @etopixi

05/30/2017 at 11:02AM

19
#78 - Adriano Benin / @adrianob11

06/06/2017 at 02:48PM

19
#79 - toddagibson / @toddagibson

06/08/2017 at 01:28AM

19
#80 - kanazawak / @_kanazawak

06/13/2017 at 03:49PM

19
#81 - Super VedoVatto / @supervedovatto

06/18/2017 at 12:39PM

19
#82 - Christian Stammen / @c0smiq

06/21/2017 at 08:43AM

19
#83 - Nathan Gober / @thegobernador

06/30/2017 at 01:06PM

19
#84 - SirVimGolf / @SirVimGolf

08/23/2017 at 09:12PM

19
#85 - bazkila@gmail.com / @bazkila

09/03/2017 at 04:18AM

19
#86 - QingyuZhao / @zhao_qingyu

11/21/2017 at 07:14AM

19
#87 - Arijus / @argshook

02/09/2018 at 09:02AM

19
#88 - Lisa Ugray / @lisa_ugray

03/16/2018 at 01:50PM

19
#89 - Aunt Jovie / @auntjovie

05/23/2018 at 08:06PM

19
#90 - Norbert / @mullno

06/26/2018 at 06:20PM