I use vundle to install sparkup:
after installation completed, I create an new file named test.html, insert div>ul, and press <c-e>, but can't expand to:
I have python 2.7.3 installed, and my vim version is 7.3.682.
Make sure you follow the instructions. It does not work with Vundle out of the box.
Do not forget copy sparkup.py to ~/.vim/ or set g:sparkup in .vimrc file.
@korin I don't understand the sentence It does not work with Vundle out of the box.Can you explain it more clear? I have tried to follow the instrutions,but can't understand the configuration. I think it's better to give some example about the configuration.
It does not work with Vundle out of the box
It doesn't work because sparkup repository contains not only vim plugin, but also bundle for Textmate.
You need to do
1. Install sparkup with vundle, like you did
let g:sparkup = 'bundle/sparkup/sparkup.py'
@korin thank you very much. It's OK! Previously，I have installed sparkp with vundle, but I don't set g:sparkup in ~/.vimrc, so it does not work. when setted, it really work! but when I run make vim-pathogen, getting the error:
make: Nothing to be done for `vim-pathogen`
I don't know why.
Another question：<ctrl + E> is not very convenient, is there any more efficient method?
<ctrl + E>
make vim-pathogen just creates symlinks so I think it's ok when
you can change mapping like this:
g:sparkupExecuteMapping (Default: '<c-e>') -
Mapping used to execute sparkup.
g:sparkupNextMapping (Default: '<c-n>') -
Mapping used to jump to the next empty tag/attribute.
eg in ~/.vimrc
let g:sparkupExecuteMapping = '<c-n>'
let g:sparkupNextMapping = '<c-x>'