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

246 active golfers, 465 entries

Leaderboard (lowest score wins):
10
#211 - Mike Herrera / @crftr

01/31/2016 at 07:02PM

10
#212 - Chenut Ludovic / @7Brwa7

04/05/2016 at 03:15PM

10
#213 - tgmeng / @lazy_fabric

06/22/2016 at 09:35AM

10
#214 - Jason Melton / @ushimitsudoki

08/25/2016 at 12:05AM

10
#215 - Kyouma / @kyoumaJohn

10/14/2016 at 07:23PM

10
#216 - TweetDreams / @TweetMusicians

10/16/2016 at 08:58PM

10
#217 - Michał Dytko / @DytkoM

12/27/2016 at 02:33PM

10
#218 - Gurukandhamoorthi / @Gurukandhamoor1

07/13/2017 at 12:03PM

10
#219 - Petar Saulic / @gorillawarfare9

10/27/2017 at 12:38PM

10
#220 - Austin Ware / @AustinWare17

03/13/2018 at 02:42AM

10
#221 - Marius Jurgelenas / @MarenasLT

07/12/2018 at 12:23PM

10
#222 - albalitz / @_albalitz

06/17/2019 at 01:33PM

10
#223 - Ivo Blöchliger / @aigledesalpes

08/23/2019 at 09:02PM

10
#224 - Miko / @_m_ik_o_

10/18/2019 at 09:02AM

10
#225 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 04:24PM

10
#226 - vimgolfaccfekxh / @vimgolfaccfekxh

10/30/2022 at 09:47PM

10
#227 - Nıklas Rıeken / @ttnick

04/22/2026 at 06:31AM

10
#228 - yunglatkes / @yunglatkes

08/25/2026 at 06:45AM

11
#229 - Netznarkose / @netznarkose

02/13/2015 at 10:32AM

11
#230 - Kristijan Husak / @kristijan_husak

02/13/2015 at 11:26AM

11
#231 - Lieven Keersmaekers / @LievenKeersmaek

02/13/2015 at 08:33PM

11
#232 - Gary Moser / @garyRmoser

02/14/2015 at 05:03AM

11
#233 - Yuval Netanel / @Yuval5555

02/15/2015 at 12:42PM

11
#234 - Mike McGowan / @mikemcgowan75

02/26/2015 at 07:42PM

11
#235 - louis sherren / @louis_sherren

02/27/2015 at 08:50AM

11
#236 - steron / @steron23

04/01/2015 at 07:06PM

11
#237 - Bas Tichelaar / @bastichelaar

06/02/2015 at 07:26PM

11
#238 - Joël Christ / @jjlchrist

10/07/2016 at 02:06PM

11
#239 - Olivier Bégassat / @zk_evm

06/15/2023 at 11:19AM

12
#240 - talineo / @talineo_

04/10/2015 at 11:09PM