Reputation: 310
Is there a way to get RubyMine-like autoformatting in vim?
Example I have this code:
def some_method
hash[:key ] = "hello"
end
def some_other_method
x = [ "hello", "world"]
end
I want to hit something similar to Cmd+Shift+L (in RubyMine) and have vim output this:
def some_method
hash[:key] = "hello"
end
def some_other_method
x = ["hello", "world"]
end
Upvotes: 3
Views: 360