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 157 remaining solutions by signing in and submitting your own entry
#158 Gracjan Grala / gracjangrala - Score: 10 - 04/21/15 @ 23:12
4j<C-V>jjI#<Esc>ZZ

0 comments

#159 chvzvhn / chvzvhn - Score: 10 - 04/26/15 @ 04:40
4j<C-V>jjI#<Esc>ZZ

0 comments

#160 montalvoMiguel / imontalvomiguel - Score: 10 - 05/05/15 @ 05:29
5G<C-V>jjI#<Esc>ZZ

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

0 comments

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

197 active golfers, 375 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 / ricardolimaapps

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 - chaac / 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

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

9
#61 - AppTakk! / apptakk

03/17/2015 at 11:14AM

9
#62 - Louis Caruana / louiecaruana

03/18/2015 at 01:55AM

9
#63 - Mart Birnbaum / grinningc

03/19/2015 at 03:12PM

9
#64 - Walf / walfieee

03/23/2015 at 09:15PM

9
#65 - ipson_nek / ipson_nek

03/27/2015 at 11:51AM

9
#66 - Marcelo Montu / _mMontu_

03/27/2015 at 04:29PM

9
#67 - Alexander Kazakov / volandkot

03/29/2015 at 11:40AM

9
#68 - Alice Benign / AliceBenign

03/29/2015 at 01:32PM

9
#69 - pftb12345 / pftb12345

03/29/2015 at 01:41PM

9
#70 - Ilker Mutlu / ilkermutlu

04/02/2015 at 06:58AM

9
#71 - You Mustnotknow / y8hVz6fJdm6Lt5q

04/03/2015 at 07:39PM

9
#72 - E Both / enboth

04/08/2015 at 03:49PM

9
#73 - Sigurður Ægir Jónsso / siggiae

04/09/2015 at 03:10PM

9
#74 - Assaf Lavie / AssafLavie

04/17/2015 at 02:08PM

9
#75 - Daniel Byron / dansolo17

04/19/2015 at 11:18AM

9
#76 - Martijn Theunissen / Martijn_______

04/21/2015 at 06:54PM

9
#77 - Andreas Carben / meiner_eins

04/25/2015 at 11:44PM

9
#78 - Kevin Yokley / kyokley19

04/26/2015 at 11:04AM

9
#79 - skrobul / skrobul

04/28/2015 at 12:36PM

9
#80 - Rathrio / Rathrio

04/29/2015 at 07:00PM

9
#81 - e / e1914_2014

05/01/2015 at 12:13PM

9
#82 - Antony Scriven / antonyscriven

05/05/2015 at 04:07PM

9
#83 - Alex Bartol / alexbartol

05/06/2015 at 04:43PM

9
#84 - Slurpie Chapdash / SlurpieChapdash

05/07/2015 at 02:51PM

9
#85 - Clark DuVall / theclarkatron

05/23/2015 at 04:54AM

9
#86 - Personal Life Trackr / PersLifeTrackr

05/27/2015 at 10:10PM

9
#87 - Skúli Jóhannsson / skulibj

06/26/2015 at 07:22PM

9
#88 - Jack Z / itszhou

06/28/2015 at 05:28PM

9
#89 - Louis Burke / LambdaABeta

07/09/2015 at 09:29PM

9
#90 - Mutter Mumble / muttermumble

07/10/2015 at 10:42AM

9
#91 - CoCo Loco / lc2817

07/30/2015 at 07:39AM

9
#92 - Ferdev vimgolf / fergvimgolf

08/12/2015 at 07:39AM

9
#93 - Liam Thurston / lthurston188

08/17/2015 at 04:47AM

9
#94 - Ryan / eatsleephack_

08/28/2015 at 12:36AM

9
#95 - Mike Adams / davis_cromwell

10/02/2015 at 08:16PM

9
#96 - Walker Boh / walker_boh

10/06/2015 at 08:49AM

9
#97 - Gerald Tilma / GeraldTilma

10/18/2015 at 09:08PM

9
#98 - Daniel Pham / dany_pham

10/19/2015 at 04:46PM

9
#99 - Damien J / TL343

10/24/2015 at 02:40AM

9
#100 - Árpád Krejczinger / krarpi

11/09/2015 at 04:54PM

9
#101 - Wilmer Bandres / WilmerBandres

12/23/2015 at 07:19PM

9
#102 - jackliusr / jackliusr

01/14/2016 at 10:08AM

9
#103 - Jon Krause / jkrause314

01/14/2016 at 06:30PM

9
#104 - Cristian Lupașcu / clupasq

02/17/2016 at 10:26AM

9
#105 - Aleksey Zhidkov / AlexeyZhidkov

02/18/2016 at 02:59AM

9
#106 - John Smith / literacyisgood

02/18/2016 at 07:06PM

9
#107 - Peeby Thirtyone / peeby31

02/20/2016 at 07:21PM

9
#108 - Dimitar Dimitrov / kurkale6ka

03/15/2016 at 04:58PM

9
#109 - Diego Garcia ⚒ / drgarcia1986

04/02/2016 at 10:43PM

9
#110 - Ben Hill / KaizenSoze70

05/15/2016 at 04:51PM

9
#111 - Vaisian / Vaisian

07/02/2016 at 09:01PM

9
#112 - Will / w_labranche

07/31/2016 at 08:40PM

9
#113 - Jeremiah Goyette / JeremiahGoyette

08/03/2016 at 06:27AM

9
#114 - Micha / michman89

08/22/2016 at 11:35AM

9
#115 - trx / trxdbg

10/27/2016 at 01:40PM

9
#116 - Pierre Maoui / poupougnac

01/13/2017 at 03:58PM

9
#117 - Zhihong Liu / pieapple03

03/01/2017 at 01:56AM

9
#118 - Márton Németh / nemarci42

03/01/2017 at 01:06PM

9
#119 - Yann / yannstadnicki

03/01/2017 at 08:27PM

10
#120 - Rodolphe Belouin / rbelouin

02/13/2015 at 10:42AM

10
#121 - Josu Oyanguren / josuoyanguren

02/13/2015 at 11:03AM

10
#122 - James / Dronak

02/13/2015 at 12:32PM

10
#123 - Anoop Kumar / anooplive

02/13/2015 at 01:35PM

10
#124 - Miryam de Lhoneux / mdlhx

02/13/2015 at 01:39PM

10
#125 - Jesse Hazen / jhazen532

02/13/2015 at 07:18PM

10
#126 - Oliver Christ / 0liverChrist

02/14/2015 at 05:40PM

10
#127 - yachi / yaachi

02/14/2015 at 07:30PM

10
#128 - Carlos A Henríquez Q / lagunex

02/14/2015 at 11:26PM

10
#129 - Jeremie / jermoer

02/15/2015 at 03:52AM

10
#130 - Almog / almog

02/15/2015 at 12:47PM

10
#131 - xieyh11 / xieyh11

02/16/2015 at 02:44AM

10
#132 - Zudochkin Dmitry / vredniy

02/17/2015 at 05:04PM

10
#133 - aup / aup

02/18/2015 at 10:03AM

10
#134 - Martin Liberg / marreman

02/18/2015 at 08:53PM

10
#135 - Der Graddler / DerGraddler

02/20/2015 at 01:26AM

10
#136 - Michael Giuffrida / mgiuffrida

02/20/2015 at 04:27AM

10
#137 - Thiago Prado / 5k1pp3r

02/20/2015 at 03:49PM

10
#138 - Arturo Volpe / CochoVolpe

02/23/2015 at 10:15PM

10
#139 - mnx / mnxx

02/24/2015 at 10:17AM

10
#140 - nei nei / fuglekvitraren

02/25/2015 at 05:23PM

10
#141 - Yuan Guan / yuanguan89

02/27/2015 at 07:58AM

10
#142 - YK / Dongas420

03/01/2015 at 02:09AM

10
#143 - Hugh G Rection / RectionGHugh

03/02/2015 at 08:34PM

10
#144 - Michi Loro / michiloro

03/04/2015 at 08:09AM

10
#145 - Kiet Nguyen / kietnguyen86

03/04/2015 at 10:00AM

10
#146 - vimgolf / neovimp

03/05/2015 at 08:23AM

10
#147 - shugen / shugeno

03/12/2015 at 08:12PM

10
#148 - dosmanak / dosmanak

03/17/2015 at 01:29PM

10
#149 - Oleg Alfalfa / 6alfalfa9

03/20/2015 at 05:52PM

10
#150 - ɐʇnɥsɐpoʇ / todashuta

03/25/2015 at 01:46PM

10
#151 - ಸುಬ್ರಹ್ಮಣ್ಯ ಜೋಶಿ / subbucoding

03/28/2015 at 11:48PM

10
#152 - Jacob Degeling / JacobDegeling

03/29/2015 at 08:07PM

10
#153 - MapiMopi / mapi_mopi

04/06/2015 at 06:33PM

10
#154 - Niels Madan / nielsmadan

04/16/2015 at 12:44PM

10
#155 - Charles Joachim / cacplate

04/18/2015 at 02:56PM

10
#156 - Tom van der Lee / TomVdLee

04/20/2015 at 11:04AM

10
#157 - IAmTheMemory / IAmTheMemory

04/21/2015 at 06:37PM

10
#158 - Gracjan Grala / gracjangrala

04/21/2015 at 11:12PM

10
#159 - chvzvhn / chvzvhn

04/26/2015 at 04:40AM

10
#160 - montalvoMiguel / imontalvomiguel

05/05/2015 at 05:29AM

10
#161 - Hendrik Lammers / hendriklammers

05/07/2015 at 07:14PM

10
#162 - luffy / raxcoi

06/06/2015 at 04:46PM

10
#163 - Robert Robertson / RobertC3228687

06/10/2015 at 01:11PM

10
#164 - Joel Gallant / joelg236

06/13/2015 at 03:49AM

10
#165 - Samuel Masuy / samasuy

06/27/2015 at 02:35AM

10
#166 - Teemu Okkonen / TeemuOkkonen

07/11/2015 at 07:10PM

10
#167 - darookee / darookee

07/24/2015 at 09:52AM

10
#168 - Marcus Buffett / MarcusBuffett

10/05/2015 at 07:18PM

10
#169 - Mark Brody / _markbrody

10/16/2015 at 10:35PM

10
#170 - merphant / merphant

10/22/2015 at 08:32AM

10
#171 - ORchard test / BilboBrovall

10/26/2015 at 12:14PM

10
#172 - Bogumił Kamiński / BogumilKaminski

10/26/2015 at 09:06PM

10
#173 - Ryan Marcotte / ryanjmarcotte

11/16/2015 at 05:05PM

10
#174 - Laurent Atlan / laurentatlan1

12/29/2015 at 10:49PM

10
#175 - Mike Herrera / crftr

01/31/2016 at 07:02PM

10
#176 - Chenut Ludovic / 7Brwa7

04/05/2016 at 03:15PM

10
#177 - tgmeng / lazy_fabric

06/22/2016 at 09:35AM

10
#178 - Jason Melton / ushimitsudoki

08/25/2016 at 12:05AM

10
#179 - Kyouma / kyoumaJohn

10/14/2016 at 07:23PM

10
#180 - TweetDreams / TweetMusicians

10/16/2016 at 08:58PM

10
#181 - Michał Dytko / DytkoM

12/27/2016 at 02:33PM

11
#182 - Netznarkose / netznarkose

02/13/2015 at 10:32AM

11
#183 - Kristijan Husak / kristijan_husak

02/13/2015 at 11:26AM

11
#184 - Lieven Keersmaekers / LievenKeersmaek

02/13/2015 at 08:33PM

11
#185 - Gary Moser / garyRmoser

02/14/2015 at 05:03AM

11
#186 - Yuval Netanel / Yuval5555

02/15/2015 at 12:42PM

11
#187 - Mike McGowan / mikemcgowan75

02/26/2015 at 07:42PM

11
#188 - louis sherren / louis_sherren

02/27/2015 at 08:50AM

11
#189 - steron / steron23

04/01/2015 at 07:06PM

11
#190 - Bas Tichelaar / bastichelaar

06/02/2015 at 07:26PM

11
#191 - Joël Christ / jjlchrist

10/07/2016 at 02:06PM

12
#192 - talineo / talineo_

04/10/2015 at 11:09PM

12
#193 - Jay Hack / _jayhack_

12/11/2015 at 10:56PM

13
#194 - OlivierLi / LiZhongSin

02/16/2015 at 06:54PM

13
#195 - Andrew Larson / applarson

04/15/2015 at 01:55PM

14
#196 - Thomas Borowski / thomasborowski

02/28/2015 at 07:35PM

58
#197 - Avi / tomerlevi444

02/15/2015 at 12:54PM