Reputation: 3
I am using Vim with Sparkup and I have two questions:
(I am using Ubuntu 12.04, 7.3.)
Upvotes: 0
Views: 485
Reputation: 956
For your record, a better way is to go into the ftplugin directory of the sparkup extension, make a soft link to the folder html with the name 'xml'. This makes sure that you still have the choice to customize xml and html differently.
Upvotes: 0
Reputation: 196886
Sparkup only deals with HTML. Adding CSS would mean rewriting it. If you want Zencoding why don't you use Zencoding?
Also I don't remember Zencoding doing "css output", whatever that means. Could you provide an example?
Upvotes: 0
Reputation: 161964
sparkup
is a filetype plugin. It depends on the filetype of current file.
When you edit a xml file, :set ft=html
to change filetype manually.
Then you can use the sparkup
plugin.
If you want vim do it automatically, put this command into your .vimrc
:
au BufNewFile,BufRead *.xml,*.tpl set ft=html
Upvotes: 2