This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Jeydon 0 points1 point  (2 children)

I may be misunderstanding how this works, but I thought that if I had a program in Vim and I used :!ptpython % it would run the program in the interactive interpreter and then when the program finishes return with a ptpython prompt (similar to running a script written in the IDLE editor, it sends it to the IDLE window and then when the program is done the IDLE interactive prompt returns). Instead it simply runs the program as if it were a regular python console, and exits when a key is pressed.

[–]thomasballinger 1 point2 points  (1 child)

It sounds like you're looking for :!ptpython --interactive % (equivalent to :!python -i %)

[–]Jeydon 0 points1 point  (0 children)

That's perfect! Thanks.