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

224 active golfers, 420 entries

Leaderboard (lowest score wins):
10
#181 - Robert Robertson / @RobertC3228687

06/10/2015 at 01:11PM

10
#182 - Joel Gallant / @joelg236

06/13/2015 at 03:49AM

10
#183 - Samuel Masuy / @samasuy

06/27/2015 at 02:35AM

10
#184 - Teemu Okkonen / @TeemuOkkonen

07/11/2015 at 07:10PM

10
#185 - darookee / @darookee

07/24/2015 at 09:52AM

10
#186 - Marcus Buffett / @MarcusBuffett

10/05/2015 at 07:18PM

10
#187 - Mark Brody / @_markbrody

10/16/2015 at 10:35PM

10
#188 - merphant / @merphant

10/22/2015 at 08:32AM

10
#189 - ORchard test / @BilboBrovall

10/26/2015 at 12:14PM

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

10/26/2015 at 09:06PM

10
#191 - Ryan Marcotte / @ryanjmarcotte

11/16/2015 at 05:05PM

10
#192 - Laurent Atlan / @laurentatlan1

12/29/2015 at 10:49PM

10
#193 - Mike Herrera / @crftr

01/31/2016 at 07:02PM

10
#194 - Chenut Ludovic / @7Brwa7

04/05/2016 at 03:15PM

10
#195 - tgmeng / @lazy_fabric

06/22/2016 at 09:35AM

10
#196 - Jason Melton / @ushimitsudoki

08/25/2016 at 12:05AM

10
#197 - Kyouma / @kyoumaJohn

10/14/2016 at 07:23PM

10
#198 - TweetDreams / @TweetMusicians

10/16/2016 at 08:58PM

10
#199 - Michał Dytko / @DytkoM

12/27/2016 at 02:33PM

10
#200 - Gurukandhamoorthi / @Gurukandhamoor1

07/13/2017 at 12:03PM

10
#201 - Petar Saulic / @gorillawarfare9

10/27/2017 at 12:38PM

10
#202 - Austin Ware / @AustinWare17

03/13/2018 at 02:42AM

10
#203 - Marius Jurgelenas / @MarenasLT

07/12/2018 at 12:23PM

10
#204 - albalitz / @_albalitz

06/17/2019 at 01:33PM

10
#205 - Ivo Blöchliger / @aigledesalpes

08/23/2019 at 09:02PM

10
#206 - Miko / @_m_ik_o_

10/18/2019 at 09:02AM

10
#207 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 04:24PM

11
#208 - Netznarkose / @netznarkose

02/13/2015 at 10:32AM

11
#209 - Kristijan Husak / @kristijan_husak

02/13/2015 at 11:26AM

11
#210 - Lieven Keersmaekers / @LievenKeersmaek

02/13/2015 at 08:33PM