rhysd / reply.vim

REPLs play nicely with :terminal on Vim and Neovim
MIT License
186 stars 7 forks source link

Added support for ptpython's IPython prompt start. #5

Closed rbpatt2019 closed 5 years ago

rbpatt2019 commented 5 years ago

Added b:reply_ptpython_prompt_start variable. If it is unset, then reply.vim expects ptpython classic prompt start - the more likely case. If a user set this variable to "ipython", either in .vimrc or ftplugin/python.vim, then reply.vim will expect the IPython prompt start.

ptpython prompt start is set in the user's ~/.ptpython/config.py.

Closes #4.

rhysd commented 5 years ago

I prefer matching both prompts rather than switching it by variable so that user can use both prompts without taking care about their prompt configuration.

I added the fix at 3903baf. Please let me know if it is not useful.