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

224 active golfers, 420 entries

Leaderboard (lowest score wins):
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 / @obiwan__k3n00bi

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 / @yannstad

03/01/2017 at 08:27PM

9
#120 - Daniel / @Daniel00288663

03/30/2017 at 02:26PM