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):
10
#181 - Kiet Nguyen / @kietnguyen86

03/04/2015 at 10:00AM

10
#182 - vimgolf / @neovimp

03/05/2015 at 08:23AM

10
#183 - shugen / @shugeno

03/12/2015 at 08:12PM

10
#184 - dosmanak / @dosmanak

03/17/2015 at 01:29PM

10
#185 - Oleg Alfalfa / @6alfalfa9

03/20/2015 at 05:52PM

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

03/25/2015 at 01:46PM

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

03/28/2015 at 11:48PM

10
#188 - Jacob Degeling / @JacobDegeling

03/29/2015 at 08:07PM

10
#189 - MapiMopi / @mapi_mopi

04/06/2015 at 06:33PM

10
#190 - Niels Madan / @nielsmadan

04/16/2015 at 12:44PM

10
#191 - Charles Joachim / @cacplate

04/18/2015 at 02:56PM

10
#192 - Tom van der Lee / @TomVdLee

04/20/2015 at 11:04AM

10
#193 - IAmTheMemory / @IAmTheMemory

04/21/2015 at 06:37PM

10
#194 - Gracjan Grala / @gracjangrala

04/21/2015 at 11:12PM

10
#195 - chvzvhn / @chvzvhn

04/26/2015 at 04:40AM

10
#196 - montalvoMiguel / @imontalvomiguel

05/05/2015 at 05:29AM

10
#197 - Hendrik Lammers / @hendriklammers

05/07/2015 at 07:14PM

10
#198 - luffy / @raxcoi

06/06/2015 at 04:46PM

10
#199 - Robert Robertson / @RobertC3228687

06/10/2015 at 01:11PM

10
#200 - Joel Gallant / @joelg236

06/13/2015 at 03:49AM

10
#201 - Samuel Masuy / @samasuy

06/27/2015 at 02:35AM

10
#202 - Teemu Okkonen / @TeemuOkkonen

07/11/2015 at 07:10PM

10
#203 - darookee / @darookee

07/24/2015 at 09:52AM

10
#204 - Marcus Buffett / @MarcusBuffett

10/05/2015 at 07:18PM

10
#205 - Mark Brody / @_markbrody

10/16/2015 at 10:35PM

10
#206 - merphant / @merphant

10/22/2015 at 08:32AM

10
#207 - ORchard test / @BilboBrovall

10/26/2015 at 12:14PM

10
#208 - Bogumił Kamiński / @BogumilKaminski

10/26/2015 at 09:06PM

10
#209 - Ryan Marcotte / @ryanjmarcotte

11/16/2015 at 05:05PM

10
#210 - Laurent Atlan / @laurentatlan1

12/29/2015 at 10:49PM