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


#62 help me set EDITOR settings.

Sean Morrison
David Bentley

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?


  • Sean Morrison
    Sean Morrison

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

    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:

    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.