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
#91 - Maxim / @alfa101

01/08/2020 at 04:58AM

18
#92 - floyd / @floyd10086

04/21/2020 at 06:05AM

18
#93 - Moatvald / @moatvald

05/27/2020 at 07:30AM

18
#94 - hepebexè / @hepebexe

12/31/2020 at 10:04PM

18
#95 - Jung Yeon Park / @park_jungy

01/14/2021 at 03:56PM

18
#96 - Janzen / @__Coos

10/04/2022 at 10:59AM

18
#97 - moh ayaya / @AyayaMoh

09/24/2023 at 08:04PM

18
#98 - Luoyb / @Luoyb

11/17/2023 at 03:02AM

18
#99 - Remus Dalrymple / @bornintheflames

12/23/2023 at 05:34AM

18
#100 - Peppa Pig / @PeppaPigSg

07/02/2024 at 09:36AM

18
#101 - nickGPT / @nickandbro

08/28/2024 at 02:52AM

18
#102 - Wim Stockman / @wimstockman

11/10/2024 at 06:06PM

19
#103 - we’re going to need a bigger bot / @assaflavie

05/18/2017 at 06:24PM

19
#104 - mattp (part of the 💉💉💉 club) / @mattpep

05/22/2017 at 03:05PM

19
#105 - Léo Ercolanelli / @ercolanellileo

05/23/2017 at 09:27PM

19
#106 - Christian Abbott / @etopixi

05/30/2017 at 11:02AM

19
#107 - Adriano Benin / @adrianob11

06/06/2017 at 02:48PM

19
#108 - toddagibson / @toddagibson

06/08/2017 at 01:28AM

19
#109 - kanazawak / @_kanazawak

06/13/2017 at 03:49PM

19
#110 - Super VedoVatto / @supervedovatto

06/18/2017 at 12:39PM

19
#111 - Christian Stammen / @c0smiq

06/21/2017 at 08:43AM

19
#112 - Nathan Gober / @thegobernador

06/30/2017 at 01:06PM

19
#113 - SirVimGolf / @SirVimGolf

08/23/2017 at 09:12PM

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

09/03/2017 at 04:18AM

19
#115 - QingyuZhao / @zhao_qingyu

11/21/2017 at 07:14AM

19
#116 - Arijus / @argshook

02/09/2018 at 09:02AM

19
#117 - Lisa Ugray / @lisa_ugray

03/16/2018 at 01:50PM

19
#118 - Aunt Jovie / @auntjovie

05/23/2018 at 08:06PM

19
#119 - Norbert / @mullno

06/26/2018 at 06:20PM

19
#120 - Brendan B Amdocs / @AmdocsB

11/02/2018 at 05:42PM