Last active
July 4, 2017 14:31
-
-
Save cpcloud/9b923cfc2d5894b9f9e2a032eae7634f to your computer and use it in GitHub Desktop.
Bag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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