Skip to content

Instantly share code, notes, and snippets.

@cpcloud
Last active July 4, 2017 14:31
Show Gist options
  • Select an option

  • Save cpcloud/9b923cfc2d5894b9f9e2a032eae7634f to your computer and use it in GitHub Desktop.

Select an option

Save cpcloud/9b923cfc2d5894b9f9e2a032eae7634f to your computer and use it in GitHub Desktop.
Bag
diff --git a/ftplugin/python/slime.vim b/ftplugin/python/slime.vim
index f95e334..6de0b84 100644
--- a/ftplugin/python/slime.vim
+++ b/ftplugin/python/slime.vim
@@ -1,7 +1,7 @@
function! _EscapeText_python(text)
if exists('g:slime_python_ipython') && len(split(a:text,"\n")) > 1
- return ["%cpaste -q\n", a:text, "--\n"]
+ return ["\e[200~", a:text, "\e[201~\n"]
else
let empty_lines_pat = '\(^\|\n\)\zs\(\s*\n\+\)\+'
let no_empty_lines = substitute(a:text, empty_lines_pat, "", "g")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment