2000-07-17-09:26:17 Mostly Harmless: > Is there an easy way to specify my editor as gvim if I'm in x, and vim > if I'm connected from a remote machine via ssh? Ayup. Use a wrapper script. Set the EDITOR environment variable, or mutt's editor config variable, to the name of a wrapper script, and let logic in that wrapper script decide. E.g. #!/bin/sh test -n "SSH_TTY" && exec vim ${1+"$@"} test -n "$DISPLAY" && exec gvim ${1+"$@"} exec vim ${1+"$@"} -Bennett
- EDITOR selection based on gui Mostly Harmless
- Re: EDITOR selection based on gui Bennett Todd
- Re: EDITOR selection based on gui David T-G
- Re: EDITOR selection based on gui David T-G
- Re: EDITOR selection based on gui fred smith