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
#181 - Niels Madan / @nielsmadan

04/16/2015 at 12:44PM

10
#182 - Charles Joachim / @cacplate

04/18/2015 at 02:56PM

10
#183 - Tom van der Lee / @TomVdLee

04/20/2015 at 11:04AM

10
#184 - IAmTheMemory / @IAmTheMemory

04/21/2015 at 06:37PM

10
#185 - Gracjan Grala / @gracjangrala

04/21/2015 at 11:12PM

10
#186 - chvzvhn / @chvzvhn

04/26/2015 at 04:40AM

10
#187 - montalvoMiguel / @imontalvomiguel

05/05/2015 at 05:29AM

10
#188 - Hendrik Lammers / @hendriklammers

05/07/2015 at 07:14PM

10
#189 - luffy / @raxcoi

06/06/2015 at 04:46PM

10
#190 - Robert Robertson / @RobertC3228687

06/10/2015 at 01:11PM

10
#191 - Joel Gallant / @joelg236

06/13/2015 at 03:49AM

10
#192 - Samuel Masuy / @samasuy

06/27/2015 at 02:35AM

10
#193 - Teemu Okkonen / @TeemuOkkonen

07/11/2015 at 07:10PM

10
#194 - darookee / @darookee

07/24/2015 at 09:52AM

10
#195 - Marcus Buffett / @MarcusBuffett

10/05/2015 at 07:18PM

10
#196 - Mark Brody / @_markbrody

10/16/2015 at 10:35PM

10
#197 - merphant / @merphant

10/22/2015 at 08:32AM

10
#198 - ORchard test / @BilboBrovall

10/26/2015 at 12:14PM

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

10/26/2015 at 09:06PM

10
#200 - Ryan Marcotte / @ryanjmarcotte

11/16/2015 at 05:05PM

10
#201 - Laurent Atlan / @laurentatlan1

12/29/2015 at 10:49PM

10
#202 - Mike Herrera / @crftr

01/31/2016 at 07:02PM

10
#203 - Chenut Ludovic / @7Brwa7

04/05/2016 at 03:15PM

10
#204 - tgmeng / @lazy_fabric

06/22/2016 at 09:35AM

10
#205 - Jason Melton / @ushimitsudoki

08/25/2016 at 12:05AM

10
#206 - Kyouma / @kyoumaJohn

10/14/2016 at 07:23PM

10
#207 - TweetDreams / @TweetMusicians

10/16/2016 at 08:58PM

10
#208 - Michał Dytko / @DytkoM

12/27/2016 at 02:33PM

10
#209 - Gurukandhamoorthi / @Gurukandhamoor1

07/13/2017 at 12:03PM

10
#210 - Petar Saulic / @gorillawarfare9

10/27/2017 at 12:38PM