有没有办法在 vim 中获得类似 RubyMine 的自动格式化?
示例我有以下代码:
def some_method
hash[:key ] = "hello"
end
def some_other_method
x = [ "hello", "world"]
end
我想点击类似于 Cmd+Shift+L(在 RubyMine 中)的东西并让 vim 输出:
def some_method
hash[:key] = "hello"
end
def some_other_method
x = ["hello", "world"]
end