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.
This mapping works for me:
In detail:
inoremapmeans this is an INSERT mode mapping<C-Return>means I have to hitCtrl-Returnto trigger it<CR><CR>insert two carriage returns<C-o>allows to type a single NORMAL command without leaving INSERT modekis the command in question and it moves the cursor one line up<Tab>moves the cursor to where I want it to be