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

233 active golfers, 439 entries

Leaderboard (lowest score wins):
10
#211 - Austin Ware / @AustinWare17

03/13/2018 at 02:42AM

10
#212 - Marius Jurgelenas / @MarenasLT

07/12/2018 at 12:23PM

10
#213 - albalitz / @_albalitz

06/17/2019 at 01:33PM

10
#214 - Ivo Blöchliger / @aigledesalpes

08/23/2019 at 09:02PM

10
#215 - Miko / @_m_ik_o_

10/18/2019 at 09:02AM

10
#216 - Brendan Schaenzer / @bschaenzer

09/30/2020 at 04:24PM

11
#217 - Netznarkose / @netznarkose

02/13/2015 at 10:32AM

11
#218 - Kristijan Husak / @kristijan_husak

02/13/2015 at 11:26AM

11
#219 - Lieven Keersmaekers / @LievenKeersmaek

02/13/2015 at 08:33PM

11
#220 - Gary Moser / @garyRmoser

02/14/2015 at 05:03AM

11
#221 - Yuval Netanel / @Yuval5555

02/15/2015 at 12:42PM

11
#222 - Mike McGowan / @mikemcgowan75

02/26/2015 at 07:42PM

11
#223 - louis sherren / @louis_sherren

02/27/2015 at 08:50AM

11
#224 - steron / @steron23

04/01/2015 at 07:06PM

11
#225 - Bas Tichelaar / @bastichelaar

06/02/2015 at 07:26PM

11
#226 - Joël Christ / @jjlchrist

10/07/2016 at 02:06PM

12
#227 - talineo / @talineo_

04/10/2015 at 11:09PM

12
#228 - Jay Hack / @_jayhack_

12/11/2015 at 10:56PM

12
#229 - Jurica / @Jurica34581259

11/19/2018 at 09:36PM

13
#230 - OlivierLi / @LiZhongSin

02/16/2015 at 06:54PM

13
#231 - Andrew Larson / @applarson

04/15/2015 at 01:55PM

14
#232 - Thomas Borowski / @thomasborowski

02/28/2015 at 07:35PM

58
#233 - Avi / @tomerlevi444

02/15/2015 at 12:54PM