I can't get sparkup to work. #67

trusktr opened this Issue Apr 8, 2013 · 3 comments


None yet

3 participants

trusktr commented Apr 8, 2013

I put it in my ftplugins folder, then in vim I do run filetype indent plugin on, the `source ~/.vim/ftplugins/html/sparkup.vim.

Now, in an html file, when I press it acts all funy in insert mode. The cursor jumps to the beginning of the line then back real quickly to the beginning of the shortcut text. I see call :call 78_Sparkup() for a brief moment in my command line. The end result is absolutely nothing; no changes to the buffer.

Am I doing something wrong? I'm using Python 2.7.


Sorry, I'm not sure how to proceed from here. If anyone else can help, please leave a comment.

I had similar issues and fixed it simply by making the python file forced to python 2.7.

ghost commented Mar 2, 2015

@trusktr Have you tried @robclancy's fix? Check the top of the .py file. It should have something like #! /usr/bin/env python. You need to change that to #! /usr/bin/env python2.7 to ensure that sparkup is running with the correct Python version.

This is all assuming that you also have Python 3.x installed on your machine. Before editing sparkup.py, check to see that this works:

echo "p > a" | ./sparkup.py

If that outputs the correct HTML for you, then something is wrong with the way vim is handling it. We need more details to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment