8

这看起来确实像是我应该能够在 Google 上找到的东西,但由于某种原因,我无法确定它的正面或反面。有 EDITOR 环境变量、ipy_user_conf.py 文件、ipythonrc 文件、在服务器模式下运行 gvim 的一些奇怪的事情以及一堆我无法理解的其他东西(可能是因为缺乏睡眠)。

是否有我可以遵循的指南,或者也许有人可以概述我需要采取的步骤?

4

4 回答 4

10

将 EDITOR 环境变量设置为 'gvim -f' 似乎可行。

set EDITOR=gvim -f
于 2009-03-17T19:14:33.097 回答
6
  1. edit file - C:\Users\[your username]\_ipython\ipythonrc.ini
  2. replace line: editor 0 to editor gvim –f (or editor [whatever editor you_want to use and system recognize it])
  3. save file

You may have problem that your Win doesn't recognize gvim as a command, you can fix it like this:

Control Panel -> System -> Advances system settings (System properties - Advanced tab) -> Enviroment Variables

In system variables edit Path and add this: ;C:\Program Files\Vim\vim73\ or path that leads to your gvim.exe

于 2011-05-16T19:46:26.673 回答
3

在 Windows 中创建一个新的环境变量,名为EDITOR

  1. Win XP: Start -> Control Panel -> System -> Advanced -> Environment Variables -> New
  2. Win 7: Start -> Type in Search Programs and Files: "environment variables" -> select 'Edit environment variables for your account' -> New...

变量名将是EDITOR,变量值将是gvim.exe文件安装位置的文件路径(例如"C:\Program Files\Vim\vim73\gvim.exe"

于 2011-09-23T02:00:01.153 回答
0

为了让它与 qtconsole 一起工作,我必须输入

ipython qtconsole --ConsoleWidget.editor=gvim.bat

当 gvim 在 windows 下安装时,gvim.bat 已创建并安装在我的执行路径中。因此,为了使其永久化,

c.IPythonWidget.editor = 'gvim.bat'

行需要输入ipython_qtconsole_config.py

于 2013-07-17T03:12:30.110 回答