Question

Whenever I use Zen Coding for vim I usually have the same issue: When I want to wrap a paragraph with p the output would look like this:

<p>Text</p>

However, I'd like it to output like this:

<p>
     Text
</p>

How do I tell the zencoding plugin to split the output onto several lines?

Was it helpful?

Solution

In official Zen Coding (your Vim plugin has unofficial implementation, but it tries to stick close to it), you need to apply xml filter to your abbreviation. It will apply XML profile with different formatting options.

So, in your case, you may try to wrap text with p|xml abbreviation.

For further information on output tweaking, you may want to read the following:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top