5 ms·
Since the blog isn't taking comments, posting it here. > doesn't work very well with is Python, because it preserves whitespace when it moves the code over the
by irahul 16y ago
Since the blog isn't taking comments, posting it here.
> doesn't work very well with is Python, because it preserves whitespace when it moves the code over the REPL.
If that's the only issue, it's easy to fix it. All you need to do is to replace multiple new lines with single new line.
let s:foo_text = substitute(a:text, '\n\s*\n\+', '\n', 'g') . "\n"
Here is my slightly modified slime.vim:
http://gist.github.com/589934 http://gist.github.com/589934
I have been using it on Ubuntu with vim and IPython and it seems to work fine. When I started using slime.vim for Python, I ran into whitespace issue and Jonathan(slime.vim developer) resolved it when I asked him on his blog.
http://technotales.wordpress.com/2007/10/03/like-slime-for-vim/ http://technotales.wordpress.com/2007/10/03/like-slime-for-v...
You can search for Rahul in the comments.