Question

I start using vim with zencoding plugin. For example, I type div, hit mapkey and get this (where I is cursor position):

<div>I</div>

If then I will hit enter, I'll get this:

<div>
I</div>

But I want to get this (like in SublimeText2 with the same zencoding plugin):

<div>
    I
</div>

How can I do it? Maybe there are some settings in zencoding plugin or secret mapkey in vim?

ps Sorry for my English.

UPD I try to use SparkUp, but it doesn't work at all. I have Python 2.7 and "filetype ... on" line in my vimrc file, but it still doesn't work. Why? I don't know. And about surround plugin. It's not the same, it's like using snippets.

No correct solution

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