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 163 remaining solutions by signing in and submitting your own entry
#164 montalvoMiguel / imontalvomiguel - Score: 10 - 05/05/15 @ 05:29
5G<C-V>jjI#<Esc>ZZ

0 comments


#165 Hendrik Lammers / hendriklammers - Score: 10 - 05/07/15 @ 19:14
4j<C-V>2jI#<Esc>ZZ

0 comments


#166 luffy / raxcoi - Score: 10 - 06/06/15 @ 16:46
5G<C-V>2jI#<Esc>ZZ

0 comments


#167 Robert Robertson / RobertC3228687 - Score: 10 - 06/10/15 @ 13:11
4j<C-V>2jI#<Esc>ZZ

0 comments


#168 Joel Gallant / joelg236 - Score: 10 - 06/13/15 @ 03:49
5G<C-V><Down><Down>I#<Esc>ZZ

0 comments


#169 Samuel Masuy / samasuy - Score: 10 - 06/27/15 @ 02:35
5G<C-V>2jI#<Esc>ZZ

0 comments


#170 Teemu Okkonen / TeemuOkkonen - Score: 10 - 07/11/15 @ 19:10
5G<C-V>2jI#<Esc>ZZ

0 comments


#171 darookee / darookee - Score: 10 - 07/24/15 @ 09:52
)j<C-V>2jI#<Esc>ZZ

0 comments


#172 Marcus Buffett / MarcusBuffett - Score: 10 - 10/05/15 @ 19:18
5G<C-V>jjI#<Esc>ZZ

0 comments


#173 Mark Brody / _markbrody - Score: 10 - 10/16/15 @ 22:35
5G<C-V>2jI#<Esc>ZZ

0 comments


#174 merphant / merphant - Score: 10 - 10/22/15 @ 08:32
5G<C-V>2jI#<Esc>ZZ

0 comments


#175 ORchard test / BilboBrovall - Score: 10 - 10/26/15 @ 12:14
4j<C-V>jjI#<Esc>ZZ

0 comments


#176 Bogumił Kamiński / BogumilKaminski - Score: 10 - 10/26/15 @ 21:06
4j<C-V>jjI#<Esc>ZZ

0 comments


#177 Ryan Marcotte / ryanjmarcotte - Score: 10 - 11/16/15 @ 17:05
5G<C-V>jjI#<Esc>ZZ

0 comments


#178 Laurent Atlan / laurentatlan1 - Score: 10 - 12/29/15 @ 22:49
5G<C-V>2jI#<Esc>ZZ

0 comments


#179 Mike Herrera / crftr - Score: 10 - 01/31/16 @ 19:02
4j<C-V>jjI#<Esc>ZZ

0 comments


#180 Chenut Ludovic / 7Brwa7 - Score: 10 - 04/05/16 @ 15:15
Mj<C-V>2jI#<Esc>ZZ

0 comments


#181 tgmeng / lazy_fabric - Score: 10 - 06/22/16 @ 09:35
Mj<C-V>jjI#<Esc>ZZ

0 comments


#182 Jason Melton / ushimitsudoki - Score: 10 - 08/25/16 @ 00:05
4j<C-V>2jI#<Esc>ZZ

0 comments


#183 Kyouma / kyoumaJohn - Score: 10 - 10/14/16 @ 19:23
4j<C-V>2jI#<Esc>ZZ

0 comments


#184 TweetDreams / TweetMusicians - Score: 10 - 10/16/16 @ 20:58
}j<C-V>jjI#<Esc>ZZ

0 comments


#185 Michał Dytko / DytkoM - Score: 10 - 12/27/16 @ 14:33
7G<C-V>2kI#<Esc>ZZ

0 comments


#186 Gurukandhamoorthi / Gurukandhamoor1 - Score: 10 - 07/13/17 @ 12:03
Gk<C-V>kkI#<Esc>ZZ

0 comments


#187 Petar Saulic / gorillawarfare9 - Score: 10 - 10/27/17 @ 12:38
4j<C-V>jjI#<Esc>ZZ

0 comments


#188 Austin Ware / AustinWare17 - Score: 10 - 03/13/18 @ 02:42
5G<C-V>jjI#<Esc>ZZ

0 comments


#189 Netznarkose / netznarkose - Score: 11 - 02/13/15 @ 10:32
4j<C-V>2jI#<Esc><Esc>ZZ

0 comments


#190 Kristijan Husak / kristijan_husak - Score: 11 - 02/13/15 @ 11:26
G<C-V>3kI#<Esc>GxZZ

0 comments


#191 Lieven Keersmaekers / LievenKeersmaek - Score: 11 - 02/13/15 @ 20:33
<k4>ji#<Esc>j.j.ZZ

0 comments


#192 Gary Moser / garyRmoser - Score: 11 - 02/14/15 @ 05:03
5Gi#<Esc>j.j.ZZ

0 comments


#193 Yuval Netanel / Yuval5555 - Score: 11 - 02/15/15 @ 12:42
:5<CR><C-V><Down><Down>I#<Esc>ZZ

0 comments


#194 Mike McGowan / mikemcgowan75 - Score: 11 - 02/26/15 @ 19:42
}ji#<Esc>j.j.ZZ

0 comments


#195 louis sherren / louis_sherren - Score: 11 - 02/27/15 @ 08:50
Gk<C-V>kkI#<Esc>jZZ

0 comments


#196 steron / steron23 - Score: 11 - 04/01/15 @ 19:06
:5<CR><C-V>jjI#<Esc>ZZ

0 comments


#197 Bas Tichelaar / bastichelaar - Score: 11 - 06/02/15 @ 19:26
4j<C-V>jjI#<Esc>:x<CR>

0 comments


#198 Joël Christ / jjlchrist - Score: 11 - 10/07/16 @ 14:06
5Gi#<Esc>j.j.ZZ

0 comments


#199 talineo / talineo_ - Score: 12 - 04/10/15 @ 23:09
:5,7s/^/#<CR>ZZ

0 comments


#200 Jay Hack / _jayhack_ - Score: 12 - 12/11/15 @ 22:56
}j<C-V>2jI#<Esc>:wq<CR>

0 comments


#201 OlivierLi / LiZhongSin - Score: 13 - 02/16/15 @ 18:54
}<Down>i#<Esc>j.j.:wq<CR>

0 comments


#202 Andrew Larson / applarson - Score: 13 - 04/15/15 @ 13:55
4<CR>i#<Down><Left>#<Down><Left>#<Esc>ZZ

0 comments


#203 Thomas Borowski / thomasborowski - Score: 14 - 02/28/15 @ 19:35
:5,7s/^/#<CR>:wq<CR>

0 comments


#204 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

204 active golfers, 384 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