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