Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't get sparkup to work. #67

Open
trusktr opened this issue Apr 8, 2013 · 5 comments
Open

I can't get sparkup to work. #67

trusktr opened this issue Apr 8, 2013 · 5 comments

Comments

@trusktr
Copy link

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.

@rstacruz
Copy link
Owner

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

@robclancy
Copy link

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

@ghost
Copy link

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.

@hiendinhngoc
Copy link

Got the same error. Tried with @ghost's solution and it worked well when I tried this command:
echo "p > a" | ./sparkup.py
But it didn't work in my vim. How to handle this issue? :(

@Mortivor
Copy link

Mortivor commented Jan 8, 2021

I have the same problem. Works in Terminal with ghosts solution but not im VIM. I'm using Debian 9 (VIM 8.0.707). In VIM there's just nothing happening when I press Control+E, not even an error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants