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

239 active golfers, 455 entries

Leaderboard (lowest score wins):
8
#1 - Peppa Pig / @PeppaPigSg

07/03/2024 at 02:15AM

9
#2 - Eduardo / @earada

02/13/2015 at 10:58AM

9
#3 - Terence Hang / @technic_tec

02/13/2015 at 11:51AM

9
#4 - Kristof / @kristofv

02/13/2015 at 12:23PM

9
#5 - gybilis / @gybilis

02/13/2015 at 12:23PM

9
#6 - John Braxler / @braxler

02/13/2015 at 02:45PM

9
#7 - Urtica dioica / @udioica

02/13/2015 at 04:25PM

9
#8 - Ricardo Lima / @ricponteslima

02/13/2015 at 04:33PM

9
#9 - Zapata / @Incredible_JFP

02/13/2015 at 04:36PM

9
#10 - Matt / @mcr05

02/13/2015 at 04:52PM

9
#11 - Tim Chase / @gumnos

02/13/2015 at 04:54PM

9
#12 - Pedro Araújo / @phcrva

02/13/2015 at 05:48PM

9
#13 - ryk / @rykarn

02/13/2015 at 05:53PM

9
#14 - James Pringle / @mathbyjames

02/13/2015 at 07:47PM

9
#15 - Gammelin Guillaume / @ggammelin

02/13/2015 at 07:57PM

9
#16 - Naseem Al-Naji / @NaseemAlnaji

02/13/2015 at 10:36PM

9
#17 - Sebastian / @soapsurfer

02/13/2015 at 11:08PM

9
#18 - david hu / @chin33z

02/14/2015 at 05:49AM

9
#19 - Kareeeeem / @VegetableBlanka

02/14/2015 at 12:13PM

9
#20 - Pierre Langlois / @_pierrelanglois

02/14/2015 at 01:53PM

9
#21 - Daniel Rødskog / @daniero

02/14/2015 at 03:14PM

9
#22 - Jakub Kotowski / @jkbkot

02/14/2015 at 04:24PM

9
#23 - Carlos López / @morrizon

02/14/2015 at 04:29PM

9
#24 - Petro Тrouq / @zulolosi

02/14/2015 at 09:39PM

9
#25 - esquifit / @henroboke

02/15/2015 at 08:26AM

9
#26 - Juan-Lucas Picard / @davidmh

02/15/2015 at 08:50AM

9
#27 - Amir Kremer / @AmirKremer

02/15/2015 at 12:43PM

9
#28 - Omer Lachish / @rauchy

02/15/2015 at 12:45PM

9
#29 - Maiz Lulkin / @joaomilho

02/15/2015 at 12:55PM

9
#30 - Strabs / @artistavenue

02/17/2015 at 09:57AM