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 134 remaining solutions by signing in and submitting your own entry
#135 Kranzy / CrazyKranzy - Score: 23 - 05/30/17 @ 02:42
/no<CR>cwbold<Esc>n./4<CR>r2n.:x<CR>

0 comments


#136 James / Dronak - Score: 23 - 05/31/17 @ 01:09
qq/no<CR>cwbold<Esc>jf4r2q@qZZ

0 comments


#137 Richard Ivan / Richard_Ivan - Score: 23 - 06/02/17 @ 20:54
/no<CR>cwbold<Esc>n.:%s/4/2<CR>ZZ

0 comments


#138 Will Gunther / WillGunther - Score: 23 - 06/11/17 @ 19:01
qq/no<CR>cwbold<Esc>/4<CR>r2q@qZZ

0 comments


#139 Mayank Suman / mayank_suman - Score: 23 - 06/24/17 @ 18:04
/no<CR>cwbold<Esc>n.:%s/4/2<CR>ZZ

0 comments


#140 Andrew Sz / RoboAndy - Score: 23 - 06/29/17 @ 09:32
/no<CR>cwbold<Esc>n./4<CR>r2n.:x<CR>

0 comments


#141 Pfhor / PfhorShark - Score: 23 - 07/02/17 @ 15:13
qq/no<CR>cwbold<Esc>/4<CR>r2q@qZZ

0 comments


#142 Jacob Buete / JBuete - Score: 23 - 07/07/17 @ 14:05
qq/no<CR>cwbold<Esc>jf4r2q@qZZ

0 comments


#143 黒澤亮二 / rjkuro - Score: 23 - 07/22/17 @ 12:11
/no<CR>cwbold<Esc>n./4<CR><C-A><C-A>n<C-A><C-A>ZZ

0 comments


#144 Jonas Sunde V / sunde_v - Score: 23 - 08/04/17 @ 15:25
qq/no<CR>cwbold<Esc>/4<CR>r2q@qZZ

0 comments


#145 Sebastian / echsberde - Score: 23 - 08/20/17 @ 21:35
/no<CR>cwbold<Esc>n.:%s/4/2<CR>ZZ

0 comments


#146 aselaIllayaparachchi / asela38 - Score: 23 - 08/24/17 @ 08:07
qq/no<CR>cwbold<Esc>/4<CR>r2q@QZZ

0 comments


#147 David / Latiku - Score: 23 - 08/25/17 @ 13:30
qq/no<CR>cwbold<Esc>/4<CR>r2q@qZZ

0 comments


#148 Edouard Piette / EdPiette - Score: 24 - 05/19/17 @ 13:00
/no<CR>ciwbold<Esc>n.?4<CR><C-A><C-A>n<C-A><C-A>ZZ

0 comments


#149 David Gustavsson / mrGustaphe - Score: 24 - 06/08/17 @ 06:25
qq/no<CR>cwbold<Esc>jf4s2<Esc>q@qZZ

0 comments


#150 Benoit Bou / 3enoit3 - Score: 24 - 06/17/17 @ 10:25
Gqq?4<CR>r2kFnciwbold<Esc>q@qZZ

0 comments


#151 Ryan Coopersmith / RyanCoopersmit1 - Score: 25 - 06/03/17 @ 15:50
jfm*cwbold<Esc>n.jf4r23jF4.ZZ

0 comments


#152 Avian Y / y_avian - Score: 25 - 06/27/17 @ 15:26
/no<CR>ciwbold<Esc>n.jf4r23k;.ZZ

0 comments


#153 Paul Inc / hiniol1982 - Score: 25 - 08/01/17 @ 21:03
/no<CR>#:%s//bold<CR>:%s/4/2<CR>ZZ

0 comments


#154 Ahmed Hasan / microbialwalrus - Score: 25 - 12/23/17 @ 04:13
qdj2fncwbold<Esc>jf4r2qj0@dZZ

0 comments


#155 Akilan Anbalagan / akilananb - Score: 25 - 03/27/18 @ 03:46
/no<CR>cwbold<Esc>n.:%s/4/2<CR>zzZZ

0 comments


#156 python-tweepy / python_tweepy - Score: 26 - 05/16/17 @ 03:55
:%s/normal/bold<CR>:%s/4/2<CR>ZZ

0 comments


#157 Alex Hallam / alexhallam6_28 - Score: 26 - 06/04/17 @ 05:22
:%s/normal/bold<CR>:%s/4/2<CR>ZZ

0 comments


#158 Kieron Browne / KieronBrowne1 - Score: 26 - 06/30/17 @ 09:10
:%s/normal/bold<CR>:%s/4/2<CR>ZZ

0 comments


#159 Sergio Semedi / SergioSemedi - Score: 26 - 07/16/17 @ 13:31
:%s/normal/bold<CR>/4<CR>r2nr2ZZ

0 comments


#160 Jeff / RealJeffIrwin - Score: 26 - 09/29/17 @ 13:16
qq/no<CR>cwbold<Esc>q@q/4<CR>r2nr2ZZ

0 comments


#161 Gurukandhamoorthi / Gurukandhamoor1 - Score: 27 - 07/09/17 @ 16:23
:%s/normal/bold/|%s/4/2/<CR>ZZ

0 comments


#162 John Doe Jr / bf4648 - Score: 28 - 06/04/17 @ 05:40
:%s/normal/bold<CR>:%s/4/2<CR>:wq<CR>

0 comments


#163 Benjamin Harris / bharrismac - Score: 28 - 06/20/17 @ 16:42
:%/<BS>s/normal/bold<CR>:%s/4/2<CR>ZZ

0 comments


#164 Juho Härme / jharme - Score: 29 - 05/22/17 @ 19:39
jfn;cebold<Esc>l/w<CR>fn.?4<CR>r2N.:wq<CR>

0 comments


#165 lpag / lpag_ai - Score: 29 - 05/31/17 @ 20:59
/no<CR>ciwbold<C-C><C-C>3j.jf4s2<C-C><C-C>?4<CR>.ZZ

0 comments


#166 Cody Loyd / codyloyd - Score: 37 - 06/14/17 @ 17:24
:%s/normal/bold/g<CR>3ggf4r26ggf4r2<Esc>:wq<CR>

0 comments


#167 Jared Thomas / jthomas285 - Score: 39 - 05/15/17 @ 23:20
:%sera<BS><BS><BS>/normal/bold<CR>kkjk<C-A><C-A>jjj<C-A>0<C-A><C-A>:wq<CR>

0 comments


#168 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

168 active golfers, 545 entries

Leaderboard (lowest score wins):
22
#121 - jirgn / jirgn

09/24/2017 at 01:18PM

22
#122 - Elton Kamami / pixel_grid

10/09/2017 at 07:23PM

22
#123 - Ron Alexssen / Ralexhere

10/18/2017 at 04:20PM

22
#124 - Gregor / Gregor07899789

10/20/2017 at 08:48PM

22
#125 - Nathanael / ngsilverman

05/09/2018 at 04:21AM

23
#126 - Bruno / ShadowDancer437

05/15/2017 at 04:16AM

23
#127 - mwatkward / AftrschoolSpe

05/15/2017 at 10:05PM

23
#128 - eric & the a6 / EricAnti4r

05/15/2017 at 11:54PM

23
#129 - Pablo / suspekt007

05/17/2017 at 02:06AM

23
#130 - blamitter ✏️ / blamitter

05/17/2017 at 01:55PM

23
#131 - Jeff Rimko / jeffrimko

05/18/2017 at 01:27AM

23
#132 - Bjoern M. Wibben / bjoernwibben

05/18/2017 at 08:41AM

23
#133 - almostdvs / almostdvs

05/23/2017 at 02:26AM

23
#134 - squid / zerosquid

05/26/2017 at 11:58PM

23
#135 - Kranzy / CrazyKranzy

05/30/2017 at 02:42AM

23
#136 - James / Dronak

05/31/2017 at 01:09AM

23
#137 - Richard Ivan / Richard_Ivan

06/02/2017 at 08:54PM

23
#138 - Will Gunther / WillGunther

06/11/2017 at 07:01PM

23
#139 - Mayank Suman / mayank_suman

06/24/2017 at 06:04PM

23
#140 - Andrew Sz / RoboAndy

06/29/2017 at 09:32AM

23
#141 - Pfhor / PfhorShark

07/02/2017 at 03:13PM

23
#142 - Jacob Buete / JBuete

07/07/2017 at 02:05PM

23
#143 - 黒澤亮二 / rjkuro

07/22/2017 at 12:11PM

23
#144 - Jonas Sunde V / sunde_v

08/04/2017 at 03:25PM

23
#145 - Sebastian / echsberde

08/20/2017 at 09:35PM

23
#146 - aselaIllayaparachchi / asela38

08/24/2017 at 08:07AM

23
#147 - David / Latiku

08/25/2017 at 01:30PM

24
#148 - Edouard Piette / EdPiette

05/19/2017 at 01:00PM

24
#149 - David Gustavsson / mrGustaphe

06/08/2017 at 06:25AM

24
#150 - Benoit Bou / 3enoit3

06/17/2017 at 10:25AM