Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#62 help me set EDITOR settings.

closed-fixed
Sean Morrison
7
2010-08-17
2010-08-17
David Bentley
No

I'm running 7.16.2 on Redhat Enterprise 5.3 and am a BASH user. My .bash_profile contains the following: EDITOR=/usr/bin/vim export EDITOR
When I execute red from the mged command line, mged hangs up and has to be killed. My vim is version 7.0.
Any ideas?

Discussion

  • Sean Morrison
    Sean Morrison
    2010-08-17

    • priority: 5 --> 7
    • assigned_to: nobody --> brlcad
    • status: open --> closed-fixed
     
  • Sean Morrison
    Sean Morrison
    2010-08-17

    That's a limitation that was introduced in the 7.16 line. MGED actually launches vim and is waiting for vim to terminate. The vim is invoked without a controlling terminal, though, which is why it hangs.

    The fix is pretty simple. You can either update to 7.16.8 or later, which has a fix for the problem, or you can set EDITOR to a wrapper script. The wrapper script entails writing out a text file (e.g., edit.sh) with the following:

    #!/bin/sh
    xterm -e /usr/bin/vim $*

    You'll have to have xterm in your path, or modify the above to be /usr/X11R6/bin/xterm or /usr/X11/bin/xterm (run "whereis xterm" to find it). Once that's set, though, a controlling terminal will invoke and mged should behave better.

    Again, this is fixed in the latest release too, so that may be even easier.

    Cheers!