Thunderbird Extensions
Apple - mac
Web iPhoto Access
Donation
Make a donation to help WiPhA development

Search




Preferences

 Count of members 29 members


Users online

( nobody )
Visits

 147698 visitors

 8 visitors online

Private
forum.gifForum - External Editor - Topic #78


Topic #78 EE with (g)vim on MacOS?
    by Lennart - visitor
04/03/2006 @ 23:48
Anonymous
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
Post an answer




Answer #1 by Globs - rank ( 164 messages )
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 Write to Globs Post an answer

Top

Answer #2 by Lennart - visitor
05/03/2006 @ 00:30
Anonymous
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

Post an answer

Top

Answer #3 by Globs - rank ( 165 messages )
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 Write to Globs Post an answer

Top

Answer #4 by Lennart - visitor
05/03/2006 @ 00:41
Anonymous
Thanks again. Unfortunately, still no luck, same behavior as before. confused

Can you tell me how exactly you start X?

Thanks,

Lennart
Post an answer

Top

Answer #5 by Lennart - visitor
05/03/2006 @ 00:43
Anonymous
Got it! Obviously the "-display :0.0" has to go to xterm, not vim. Stupid me.

Thanks again,

Lennart
Post an answer

Top

^ Top ^

GuppY - http://www.freeguppy.org/    Site powered by GuppY v4.5.14 © 2004-2005 - CeCILL Free License   GuppY - http://www.freeguppy.org/

Document generated in 0.06 second