Re: How to make the SWI-Prolog 'edit' command invoke gvim instead of Notepad on Windows 2000



student escreveu:
szgyg wrote:
student wrote:
I want to make the SWI-Prolog 'edit' command invoke gvim instead of Notepad on Windows 2000.

Would someone please give me, or direct me to, an example how this is done?

SWI FAQ
http://gollem.science.uva.nl/twiki/pl/bin/view/FAQ/BindEditor


13 ?- pwd.
j:/documents and settings/administrator/desktop

Yes
14 ?- set_prolog_flag(editor, gvim).

Yes
15 ?- edit(file(junk)).
% Waiting for editor ...
% Editor returned failure; skipped make/0 to reload files

Hmm, apparently there is more to it.

Well, perhaps in your installation, because in my Windows XP, it works as directed in the FAQ.

Just to be sure: is 'gvim' in your path?
.



Relevant Pages