Don
Faire un don pour aider au developpement de WiPhA

Recherche




Préférences

 Nombre de membres 29 membres


Utilisateurs en ligne

( personne )
Visites

 147703 visiteurs

 10 visiteurs en ligne

forum.gifForum - External Editor - Sujet n°78


Sujet n°78 EE with (g)vim on MacOS?
    par Lennart - visiteur
le 04/03/2006 @ 23:48
Anonyme
Hi,

EE is great and I'm very happy with it on Linux, using vim. On MacOS, I have spent hours trying to get it running. Basically, I can't find a way to have a Terminal window pop up in which vim is started. I fiddled around with .term, .command and simply executable shell scripts, to no avail. Does anybody out there have a working solution for this?

Thanks and best regards,

Lennart
Poster une réponse




Réponse n°1 par Globs - rank ( 164 messages )
le 04/03/2006 @ 23:59
Globs
You may replace terminal by xterm.

xterm -e vi works fine (as long as you already have X11 started).

If you really want a terminal window, I have no working solution. I indeed have a script which opens a new terminal window and starts vi with a file, but the calling window doesn't wait until vi saves and exits, so it won't work in EE.
Site web Globs Ecrire à Globs Poster une réponse

Haut

Réponse n°2 par Lennart - visiteur
le 05/03/2006 @ 00:30
Anonyme
Thanks for your reply.

Unfortunately, it doesn't work for me. What I did:

1) start X (by looking for "X11" with Spotlight and double-clicking the application "X11" - works, as now I can enter "xterm" in a Terminal and xterm actually opens)
2) try many different possibilities for the executable:
 xterm -e vim (not found because of missing path)
 /usr/X11R6/bin/xterm -e vim
 /usr/X11R6/bin/xterm -e vi
 /usr/X11R6/bin/xterm -e vi --nofork
 /usr/X11R6/bin/xterm -e vi -display :0.0 --nofork
 
What happens for the last four variants: After 1 second, I'm back in the normal editor, without any windows opening or anything.

Does EE create a logfile where I can check what happened?


Thanks and best regards,

Lennart

Poster une réponse

Haut

Réponse n°3 par Globs - rank ( 165 messages )
le 05/03/2006 @ 00:37
Globs
Try this one:

/usr/X11R6/bin/xterm -e vim -f

(from a comment which has been added to the usage page)
Site web Globs Ecrire à Globs Poster une réponse

Haut

Réponse n°4 par Lennart - visiteur
le 05/03/2006 @ 00:41
Anonyme
Thanks again. Unfortunately, still no luck, same behavior as before. confused

Can you tell me how exactly you start X?

Thanks,

Lennart
Poster une réponse

Haut

Réponse n°5 par Lennart - visiteur
le 05/03/2006 @ 00:43
Anonyme
Got it! Obviously the "-display :0.0" has to go to xterm, not vim. Stupid me.

Thanks again,

Lennart
Poster une réponse

Haut

^ Haut ^

Site non déclaré à la CNIL dans le cadre de la dispense n°6
Vous disposez d'un droit d'accès, de modification, de rectification et de suppression des données qui vous concernent via votre profil.
GuppY - http://www.freeguppy.org/    Site créé avec GuppY v4.5.14 © 2004-2005 - Licence Libre CeCILL   GuppY - http://www.freeguppy.org/

Document généré en 0.06 seconde