Re: How to make the SWI-Prolog 'edit' command invoke gvim instead of Notepad on Windows 2000
- From: Cesar Rabak <csrabak@xxxxxxxxxxxx>
- Date: Mon, 30 Apr 2007 15:54:36 -0200
student escreveu:
student wrote:
Ok, made a little more progress...
(1) Made sure the directory containing the SWI-Prolog executables was on my WINNT PATH (via
My Computer->Properties->Advanced->Environmental Variables|->System Variables->select variable name 'Path' -> click Edit... )
(2) Added the command
:- set_prolog_flag(editor,gvim).
by directly editing my 'pl.ini' file (apropos which more below).
(3) Ran SWI-Prolog and tried
?- current_prolog_flag(editor,Q).
Q = gvim
Great!
(4) Ran
?- edit('d:/misc/prolog/bell_numbers'). /* a known file */
and it came up in 'gvim'!
Fantastic!
(5)) Tried
?- edit(junk).
Warning: Cannot find anything to edit from "junk"
Warning: Use edit(file(junk)) to create a new file
Ok, expected that, so tried
?- edit(new(junk)).
Warning: Cannot find anything to edit from "new(junk)"
<expletive deleted>!
Any ideas, anyone?
How about you paying more attention to the warning messages:
<quote>
> Warning: Use edit(*file*(junk)) to create a new file
</quote>
.
- References:
- How to make the SWI-Prolog 'edit' command invoke gvim instead of Notepad on Windows 2000
- From: student
- Re: How to make the SWI-Prolog 'edit' command invoke gvim instead of Notepad on Windows 2000
- From: szgyg
- Re: How to make the SWI-Prolog 'edit' command invoke gvim instead of Notepad on Windows 2000
- From: student
- Re: How to make the SWI-Prolog 'edit' command invoke gvim instead of Notepad on Windows 2000
- From: Cesar Rabak
- Re: How to make the SWI-Prolog 'edit' command invoke gvim instead of Notepad on Windows 2000
- From: student
- Re: How to make the SWI-Prolog 'edit' command invoke gvim instead of Notepad on Windows 2000
- From: student
- Re: How to make the SWI-Prolog 'edit' command invoke gvim instead of Notepad on Windows 2000
- From: student
- How to make the SWI-Prolog 'edit' command invoke gvim instead of Notepad on Windows 2000
- Prev by Date: Re: Use temporary files instead of RAM
- Previous by thread: Re: How to make the SWI-Prolog 'edit' command invoke gvim instead of Notepad on Windows 2000
- Next by thread: ICFP Programming Contest 2007
- Index(es):
Relevant Pages
|
|