Chris Olsen
2009-Sep-30 15:58 UTC
vim: What html plugin do you use to help you close tags?
I have tried to use the closetag.vim, but would always get numerous
errors when pressing ctrl-_ that I would have to click the enter key for
each of the errors before it would finally close the tag for me.
I started using xml.vim which works great for normal xml/html files, but
always creates a closing "tag" when I am passing hash params to a
function.
ex. <%= link_to "foo", some_url, :class => "bar"
%>
results in after entering the > character:
<%= link_to "foo", some_url, :class => </%=>
Is there a better plugin that I should be using?
Thanks for the help.
--
Posted via http://www.ruby-forum.com/.
Chris Olsen
2009-Sep-30 16:18 UTC
Re: vim: What html plugin do you use to help you close tags?
Chris Olsen wrote:> I have tried to use the closetag.vim, but would always get numerous > errors when pressing ctrl-_ that I would have to click the enter key for > each of the errors before it would finally close the tag for me. > > I started using xml.vim which works great for normal xml/html files, but > always creates a closing "tag" when I am passing hash params to a > function. > ex. <%= link_to "foo", some_url, :class => "bar" %> > results in after entering the > character: > <%= link_to "foo", some_url, :class => </%=> > > Is there a better plugin that I should be using? > > Thanks for the help.Tim Pope''s allml.vim plugin works quite well http://www.vim.org/scripts/script.php?script_id=1896 -- Posted via http://www.ruby-forum.com/.