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 by @YannMoisan:

Unlock 8 remaining solutions by signing in and submitting your own entry
Created by: @netznarkose

239 active golfers, 455 entries

Solutions by @YannMoisan:
9
#35 - Yann Moisan / @YannMoisan

02/20/2015 at 01:17PM

9
#>35 - Yann Moisan / @YannMoisan

02/20/2015 at 01:18PM

9
#>36 - Yann Moisan / @YannMoisan

02/20/2015 at 09:08PM

9
#>36 - Yann Moisan / @YannMoisan

02/20/2015 at 09:15PM

10
#>167 - Yann Moisan / @YannMoisan

02/20/2015 at 01:05PM

10
#>167 - Yann Moisan / @YannMoisan

02/20/2015 at 01:06PM

11
#>226 - Yann Moisan / @YannMoisan

02/20/2015 at 09:14PM

11
#>226 - Yann Moisan / @YannMoisan

02/20/2015 at 09:14PM