如何将iPython默认编辑器从记事本更改为VIM?

问题描述

如何将iPython的.py文件默认编辑器从记事本更改为VIM?我目前正在Windows 10上运行iPython。

Ipython文档状态(https://ipython.readthedocs.io/en/stable/config/details.html

“您还可以通过在ipython_config.py中设置TerminalInteractiveShell.editor来控制编辑器。”

在文件ipython_config.py中,以下几行似乎是需要修改的相关行:

#Set the editor used by iPython (default to $EDITOR/vi/notepad)
#c.TerminalINteractiveShell.editor = 'mate -w'

我应该怎么做才能将vim设置为默认值?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)