Can I get vim to correctly indent this Ruby code (Nokogiri)?
- by Nathan Long
The first XML Builder Example for Nokogiri looks like this:
builder = Nokogiri::XML::Builder.new do |xml|
xml.root {
xml.products {
xml.widget {
xml.id_ "10"
xml.name "Awesome widget"
}
}
}
end
puts builder.to_xml
Even though I have the Ruby Vim files installed, Vim's autoindent flattens…