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):
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 - we’re going to need a bigger bot / @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 / @MPeaKelE

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