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 54ddd1d261cec11d1b01707c

Mute the second method of this script

prepend a # infront of every line of the second method

Start file
def this_method_should_be_active
  here is happening something
end

def this_method_should_be_muted
  here is not happening anything
end

End file
def this_method_should_be_active
  here is happening something
end

#def this_method_should_be_muted
#  here is not happening anything
#end

View Diff

5,7c5,7
< def this_method_should_be_muted
<   here is not happening anything
< end
---
> #def this_method_should_be_muted
> #  here is not happening anything
> #end

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 245 remaining solutions by signing in and submitting your own entry
#246 Avi / @tomerlevi444 - Score: 58 - 02/15/15 @ 12:54
4j<c-v><Up><Up><Up><Up>4j<C-V>2jII<BS><Esc><Up><Up><Up><Up><Up>4j<C-C><C-C>I<Down><Down><Up><Up><Esc><C-C><C-C><Esc><Esc><Esc><Esc><Esc><Esc><Up><Up><Up><Up><Up>4j<C-V>2jI#<Esc>ZZ

0 comments


Created by: @netznarkose

246 active golfers, 465 entries

Leaderboard (lowest score wins):
9
#151 - lassion / @mutilator630

02/15/2026 at 08:25PM

9
#152 - Gavin / @GavinKoeng

04/16/2026 at 01:37AM

9
#153 - skewcy / @ChuanyuXue

07/08/2026 at 03:44PM

9
#154 - wpr__ / @wpr____

08/22/2026 at 12:20AM

9
#155 - UdonSari / @udonsari

08/30/2026 at 08:44AM

10
#156 - Rodolphe Belouin / @rbelouin

02/13/2015 at 10:42AM

10
#157 - Josu Oyanguren / @josuoyanguren

02/13/2015 at 11:03AM

10
#158 - James / @Dronak

02/13/2015 at 12:32PM

10
#159 - Anoop Kumar / @anooplive

02/13/2015 at 01:35PM

10
#160 - Miryam de Lhoneux / @mdlhx

02/13/2015 at 01:39PM

10
#161 - Jesse Hazen / @jhazen532

02/13/2015 at 07:18PM

10
#162 - Oliver Christ / @0liverChrist

02/14/2015 at 05:40PM

10
#163 - yachi / @yaachi

02/14/2015 at 07:30PM

10
#164 - Carlos A HenrĂ­quez Q / @lagunex

02/14/2015 at 11:26PM

10
#165 - Jeremie / @jermoer

02/15/2015 at 03:52AM

10
#166 - Almog / @almog

02/15/2015 at 12:47PM

10
#167 - xieyh11 / @xieyh11

02/16/2015 at 02:44AM

10
#168 - Dmitry Zudochkin / @zudochkin

02/17/2015 at 05:04PM

10
#169 - aup / @aup

02/18/2015 at 10:03AM

10
#170 - Martin Liberg / @marreman

02/18/2015 at 08:53PM

10
#171 - Der Graddler / @DerGraddler

02/20/2015 at 01:26AM

10
#172 - Michael Giuffrida / @mgiuffrida

02/20/2015 at 04:27AM

10
#173 - Thiago Prado / @5k1pp3r

02/20/2015 at 03:49PM

10
#174 - Arturo Volpe / @CochoVolpe

02/23/2015 at 10:15PM

10
#175 - mnx / @mnxx

02/24/2015 at 10:17AM

10
#176 - nei nei / @fuglekvitraren

02/25/2015 at 05:23PM

10
#177 - Yuan Guan / @yuanguan89

02/27/2015 at 07:58AM

10
#178 - YK / @Dongas420

03/01/2015 at 02:09AM

10
#179 - Hugh G Rection / @RectionGHugh

03/02/2015 at 08:34PM

10
#180 - Michi Loro / @michiloro

03/04/2015 at 08:09AM