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

233 active golfers, 439 entries

Leaderboard (lowest score wins):
10
#151 - Miryam de Lhoneux / @mdlhx

02/13/2015 at 01:39PM

10
#152 - Jesse Hazen / @jhazen532

02/13/2015 at 07:18PM

10
#153 - Oliver Christ / @0liverChrist

02/14/2015 at 05:40PM

10
#154 - yachi / @yaachi

02/14/2015 at 07:30PM

10
#155 - Carlos A Henríquez Q / @lagunex

02/14/2015 at 11:26PM

10
#156 - Jeremie / @jermoer

02/15/2015 at 03:52AM

10
#157 - Almog / @almog

02/15/2015 at 12:47PM

10
#158 - xieyh11 / @xieyh11

02/16/2015 at 02:44AM

10
#159 - Dmitry Zudochkin / @zudochkin

02/17/2015 at 05:04PM

10
#160 - aup / @aup

02/18/2015 at 10:03AM

10
#161 - Martin Liberg / @marreman

02/18/2015 at 08:53PM

10
#162 - Der Graddler / @DerGraddler

02/20/2015 at 01:26AM

10
#163 - Michael Giuffrida / @mgiuffrida

02/20/2015 at 04:27AM

10
#164 - Thiago Prado / @5k1pp3r

02/20/2015 at 03:49PM

10
#165 - Arturo Volpe / @CochoVolpe

02/23/2015 at 10:15PM

10
#166 - mnx / @mnxx

02/24/2015 at 10:17AM

10
#167 - nei nei / @fuglekvitraren

02/25/2015 at 05:23PM

10
#168 - Yuan Guan / @yuanguan89

02/27/2015 at 07:58AM

10
#169 - YK / @Dongas420

03/01/2015 at 02:09AM

10
#170 - Hugh G Rection / @RectionGHugh

03/02/2015 at 08:34PM

10
#171 - Michi Loro / @michiloro

03/04/2015 at 08:09AM

10
#172 - Kiet Nguyen / @kietnguyen86

03/04/2015 at 10:00AM

10
#173 - vimgolf / @neovimp

03/05/2015 at 08:23AM

10
#174 - shugen / @shugeno

03/12/2015 at 08:12PM

10
#175 - dosmanak / @dosmanak

03/17/2015 at 01:29PM

10
#176 - Oleg Alfalfa / @6alfalfa9

03/20/2015 at 05:52PM

10
#177 - ɐʇnɥsɐpoʇ / @todashuta

03/25/2015 at 01:46PM

10
#178 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / @subbucoding

03/28/2015 at 11:48PM

10
#179 - Jacob Degeling / @JacobDegeling

03/29/2015 at 08:07PM

10
#180 - MapiMopi / @mapi_mopi

04/06/2015 at 06:33PM