External Editor
Yamb
Web iPhoto Access
 29 membres
Utilisateurs en ligne
( personne )
147703 visiteurs
10 visiteurs en ligne
|
Sujet n°78 |
EE with (g)vim on MacOS?
par Lennart - visiteur
le 04/03/2006 @ 23:48 |
 |
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
|
 |
Réponse n°1 |
par Globs - ( 164 messages )
le 04/03/2006 @ 23:59 |
 |
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.
|
 |

Réponse n°2 |
par Lennart - visiteur
le 05/03/2006 @ 00:30 |
 |
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
|
 |

Réponse n°3 |
par Globs - ( 165 messages )
le 05/03/2006 @ 00:37 |
 |
Try this one:
/usr/X11R6/bin/xterm -e vim -f
(from a comment which has been added to the usage page)
|
 |

Réponse n°4 |
par Lennart - visiteur
le 05/03/2006 @ 00:41 |
 |
Thanks again. Unfortunately, still no luck, same behavior as before. 
Can you tell me how exactly you start X?
Thanks,
Lennart
|
 |

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

|
|