Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8731151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:09:57+00:00 2026-06-13T09:09:57+00:00

I recently switched over to Vim and after the initial hurdle I really like

  • 0

I recently switched over to Vim and after the initial hurdle I really like it. The only thing that might be a deal killer for me is the auto indents for erb tags being all messed up. I’m using the Janus plugin package which includes ruby.vim and rails.vim. I also added the html5.vim because someone told me it could help with that.

Here’s and example of the messed up indents it does:

  <% unless @zipcode.latitude.blank? %>
    <p>
  <b>Latitude:</b>
  <%= @zipcode.latitude %>
  </p>
<% end %>

  <p>
  <b>Longitude:</b>
  <%= @zipcode.longitude %>
  </p>

Any suggestions at all would be much appreciated. It seems like there has to be a way to make a powerful editor like vim indent right. I’d hate to go back to sublime or aptana but this is a feature I really don’t want to live without.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T09:09:58+00:00Added an answer on June 13, 2026 at 9:09 am

    I believe that there are 2 possible ways of solving your problem.

    Firstly, temporarily remove the Janus distribution and replace it with a minimum .vimrc. Then install the ERuby plugin and see if it works. If it works now then the problem has to be a conflict with one of the other plugins, and you should try reenabling the different Janus plugins one by one to see where the fault lies. However, if it still doesn’t work then you know that the plugin itself doesn’t work on your system and you could send a detailed bug report to the author (including the operating system you are using and your vim version).

    Alternatively, it is very easy to reconfigure Vim to use a different indentation method.
    You could use a different built-in indentation (:h indentexpr), for example for XML:

    autocmd FileType eruby setl indentexpr=XmlIndentGet(v:lnum,1)
    

    Or you could configure Vim to use an external indentation program (:h equalprg).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently switched over to using Janus from a custom set of vim plugins
I recently switched over to C# from vb.NET and within visual studio found that
Our company has recently switched over to using After the Deadline for our spell
I recently switched over to a MacBook Pro so I'm still really new at
I've recently switched my app over to Rails 3.1 and began using the asset
I recently switched to a new setup that is reporting PHP Notices; my code
I recently switched to upstream for my git push configuration (meaning only the current
I recently switched over from SVN to Hg. I used to use TortoiseSVN, and
I've recently switched over a rails app to a new server. For some reason,
We've just recently switched over from SVN to Mercurial, but now we are running

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.