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

212 active golfers, 403 entries

Leaderboard (lowest score wins):
9
#1 - Eduardo / @earada

02/13/2015 at 10:58AM

9
#2 - Terence Hang / @technic_tec

02/13/2015 at 11:51AM

9
#3 - Kristof Vannotten / @kristofv

02/13/2015 at 12:23PM

9
#4 - gybilis / @gybilis

02/13/2015 at 12:23PM

9
#5 - John Braxler / @braxler

02/13/2015 at 02:45PM

9
#6 - Urtica dioica / @udioica

02/13/2015 at 04:25PM

9
#7 - Ricardo Lima / @ricponteslima

02/13/2015 at 04:33PM

9
#8 - Zapata / @Incredible_JFP

02/13/2015 at 04:36PM

9
#9 - Matthieu Crapet / @mcr05

02/13/2015 at 04:52PM

9
#10 - Tim Chase / @gumnos

02/13/2015 at 04:54PM

9
#11 - Pedro Araújo / @phcrva

02/13/2015 at 05:48PM

9
#12 - ryk / @rykarn

02/13/2015 at 05:53PM

9
#13 - James Pringle / @mathbyjames

02/13/2015 at 07:47PM

9
#14 - Gammelin Guillaume / @ggammelin

02/13/2015 at 07:57PM

9
#15 - Naseem Al-Naji / @NaseemAlnaji

02/13/2015 at 10:36PM

9
#16 - Sebastian / @soapsurfer

02/13/2015 at 11:08PM

9
#17 - david hu / @chin33z

02/14/2015 at 05:49AM

9
#18 - Kareeeeem / @VegetableBlanka

02/14/2015 at 12:13PM

9
#19 - Pierre Langlois / @_pierrelanglois

02/14/2015 at 01:53PM

9
#20 - Daniel Rødskog / @daniero

02/14/2015 at 03:14PM

9
#21 - Jakub Kotowski / @jkbkot

02/14/2015 at 04:24PM

9
#22 - Carlos López / @morrizon

02/14/2015 at 04:29PM

9
#23 - Petro Тrouq / @zulolosi

02/14/2015 at 09:39PM

9
#24 - esquifit / @henroboke

02/15/2015 at 08:26AM

9
#25 - Juan-Lucas Picard / @davidmh

02/15/2015 at 08:50AM

9
#26 - Amir Kremer / @AmirKremer

02/15/2015 at 12:43PM

9
#27 - Omer Lachish / @rauchy

02/15/2015 at 12:45PM

9
#28 - Maiz Lulkin / @joaomilho

02/15/2015 at 12:55PM

9
#29 - Strabs / @artistavenue

02/17/2015 at 09:57AM

9
#30 - Laurent Stacul / @stac47

02/17/2015 at 05:21PM