我用以下几行将默认的Octave编辑器更改为Notepad ++:
EDITOR('C:\Octave\Octave-5.2.0\notepad++\notepad++.exe');
edit ("editor", sprintf ("%s %%S", EDITOR()))
edit mode async
当我写编辑时,记事本会弹出,并且工作正常。但是每次我打开Octave CLI时,都会出现以下错误:
error: The EDITOR option of edit has been removed. Use EDITOR() directly.
error: called from
edit at line 165 column 9
C:\Users\emiry\.octaverc at line 8 column 1
如何在不触发错误的情况下更改编辑器?
警告来自第二行
edit ("editor", sprintf ("%s %%S", EDITOR()))
如果您查看help edit
您会注意到不再使用editor
。设置是您的第一行
EDITOR('C:\Octave\Octave-5.2.0\notepad++\notepad++.exe');