有没有办法在vim中使用类似RubyMine的autoformatting?
示例我有这段代码:
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