Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

I can't get sparkup to work. #67

Open
trusktr opened this Issue · 3 comments

4 participants

@trusktr

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.

@rstacruz
Owner

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

@robclancy

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

@sporkbox
Collaborator

@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
Something went wrong with that request. Please try again.