Have you heard of zen-coding? It's a script that generates markup based on a css-esque selector like this:
div#foo > p*6
This code would generate:
<div id="foo">
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
</div>
Edit: Here's a more advanced example...
I find zen-coding intuitive to use because I can apply my CSS selector knowledge without going through any API.
ul#nav > li[id] * 6 > a
This snippet generates:
<ul id="nav">
<li id="">
<a href=""></a>
</li>
<li id="">
<a href=""></a>
</li>
<li id="">
<a href=""></a>
</li>
<li id="">
<a href=""></a>
</li>
<li id="">
<a href=""></a>
</li>
<li id="">
<a href=""></a>
</li>
</ul>
By using shortcuts like Ctrl-E, zen-coding proves to be incredibly useful in front-end development. While it's supported in editors like TextMate and Aptana, there is a fork named sparkup for vim users as well.
Are there any similar plugins or tools you've come across in the past for efficient coding? Share your discoveries!