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):
9
#31 - drdanz / @drdanz

02/17/2015 at 11:07PM

9
#32 - Martin Habovštiak / @kixunil

02/18/2015 at 10:28PM

9
#33 - Berlin / @Berli92

02/19/2015 at 07:21PM

9
#34 - Yann Moisan / @YannMoisan

02/20/2015 at 01:17PM

9
#35 - Tournami / @Tournami

02/20/2015 at 08:10PM

9
#36 - Christopher Giroir / @kelsin5

02/20/2015 at 09:18PM

9
#37 - Asenar / @asenar

02/23/2015 at 03:44PM

9
#38 - Alan Berndt / @bentglasstube

02/23/2015 at 04:56PM

9
#39 - Felix / @DoubleFelix_

02/24/2015 at 11:00AM

9
#40 - paulfariello ✏️ / @paulfariello

02/25/2015 at 04:39PM

9
#41 - Javier Carpio / @SaxKazein

02/26/2015 at 01:44AM

9
#42 - Chris Edwards / @boise_chris

02/26/2015 at 06:24AM

9
#43 - Elizabeth / @sprinkles418

02/27/2015 at 05:53AM

9
#44 - krzysztof siejkowski / @_siejkowski

02/28/2015 at 09:39AM

9
#45 - Darth Shuvalov / @shuvalov_anton

03/01/2015 at 01:38PM

9
#46 - Кисы / @ubermuschi

03/01/2015 at 04:58PM

9
#47 - Yannic Haupenthal / @yhaupenthal

03/01/2015 at 08:47PM

9
#48 - Mariano Macchi / @mmacchif

03/01/2015 at 10:24PM

9
#49 - Andrew / @WK3AS

03/02/2015 at 12:08AM

9
#50 - Erik Johansson / @iamknugen

03/02/2015 at 12:25AM

9
#51 - ylletyll / @ylletyll

03/02/2015 at 08:22PM

9
#52 - Matthew Bender / @iobender

03/02/2015 at 08:31PM

9
#53 - Ben Plantinga / @benplantinga

03/03/2015 at 04:55AM

9
#54 - Matthew Pryor / @HodgekaGames

03/03/2015 at 06:31PM

9
#55 - Conor McNamara / @conortm

03/04/2015 at 04:49AM

9
#56 - Marcin Brański / @3h4xx

03/07/2015 at 11:46PM

9
#57 - DrHobo / @_DrHobo_

03/09/2015 at 09:00PM

9
#58 - Kenny / @zumalifeguard

03/10/2015 at 03:18AM

9
#59 - Ala' Ibrahim / @alaa_ibrahim

03/10/2015 at 08:20AM

9
#60 - Deepak Surti / @dmsurti

03/15/2015 at 03:46PM