我想知道在Vim中是否有可能自动缩进Rails代码,而不是像这样:
validates :email, :presence => true,
:format => { :with => email_regex },
:uniqueness => { :case_sensitive => false }
转换为:
validates :email, :presence => true,
:format => { :with => email_regex },
:uniqueness => { :case_sensitive => false }
:AlignCtrl Wlp0P1: :Align : :AlignCtrl Wlp1P1: :Align =>
- Jakob Lnr