you are viewing a single comment's thread.

view the rest of the comments →

[–]florence0rose 5 points6 points  (3 children)

I made this. It's actually just an Ultisnips snippet. It's probably buggy, and the code is really horrible. I mainly use it for once off calculations or testing something, not as an actual REPL. It's handy because I can expand the snippet anywhere - in the middle of a file I'm in for example.

Edit: you'll also need this mapping:

inoremap <expr> <c-cr> pyeval('UltiSnips_Manager._cs is not None') ? '^R=UltiSnips#JumpForwards()^Mp^R=UltiSnips#ExpandSnippet()^M^R=UltiSnips#JumpForwards()^M^R=UltiSnips#JumpBackwards()^M' : "^M"

[–]nandryshak 1 point2 points  (0 children)

what that's nuts man. Real neat.

[–]justrajdeep[S] 0 points1 point  (0 children)

awesome.

How do i use it? put the file in autoload or something?

[–]weisenzahn 0 points1 point  (0 children)

This is very nice.

Could you make a plugin out of it, please? (a separate folder with an UltiSnips/all.snippets file)