Permalink
Browse files

Add custom escaper for python

Somehow the python REPL loses the newline information when pasting.
Convert them to the CRLF character before sending.
  • Loading branch information...
1 parent ab3c5bc commit ffb3c4e72b1e37cbf45a544c62b7e70d91479ee1 @caio caio committed Nov 27, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 ftplugin/python/slime.vim
@@ -0,0 +1,3 @@
+function! _EscapeText_python(text)
+ return substitute(a:text, "\n", "", "g")
+endfunction

0 comments on commit ffb3c4e

Please sign in to comment.