Here is one neat little vim trick
def some_method
return bla
end
These vim mappings allow you to quickly comment a block of code in VISUAL mode by pressing ,# or any other key command you prefer
#def some_method
# return bla
#end
And pressing ,c removes them again.
def some_method
return bla
end
Leave a Reply