I can't indent html at all.
Ryan Shillington
ryanshillington at gmail.com
Wed May 9 23:58:25 EDT 2007
Hey guys,
I had previously installed all kinds of rails plugins (probably a mismash of
things contributed to this project in their earlier days), so I uninstalled
Vim altogether, did a clean re-install of Vim 7.0 on Windows and installed
this vim-ruby stuff (version 2007.05.07) using the gem.
Now, whenever I select code that looks like the following:
<% if(@show_confirmation)%>
<div id="confirmationHeaderDiv">
<table style="width: 100%;">
<tr>
<td><img src="/images/leftYellowTab.gif" width="11"
height="13"></td>
<td class="yellowBackground" style="width: 100%;"></td>
<td><img src="/images/rightYellowTab.gif" width="11"
height="13"></td>
</tr>
</table>
<div id="confirmationHeaderImageDiv"><%=image_tag("checkout/step5.gif",
:align =>"center", :border=> 0, :width => 451, :height => 71) %></div>
</div>
<%end%>
and press "=" which used to indent the HTML for me, I now see:
<% if(@show_confirmation)%>
<div id="confirmationHeaderDiv">
<table style="width: 100%;">
<tr>
<td><img src="/images/leftYellowTab.gif" width="11" height="13"></td>
<td class="yellowBackground" style="width: 100%;"></td>
<td><img src="/images/rightYellowTab.gif" width="11" height="13"></td>
</tr>
</table>
<div id="confirmationHeaderImageDiv"><%=image_tag("checkout/step5.gif",
:align =>"center", :border=> 0, :width => 451, :height => 71) %></div>
</div>
<%end%>
Ah!!! It's destroyed my html formating. The filename is called
show.rhtmland I checked that the filetype is being recognized as
eruby. My _vimrc is
available here (http://www.thebookhauler.com/vimRuby/_vimrc) although I
tried it without my _vimrc and got the same results.
Any ideas what I might be doing wrong? That used to work.
Thanks in advance,
Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/vim-ruby-devel/attachments/20070509/4f783687/attachment-0001.html
More information about the vim-ruby-devel
mailing list