Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I set gedit to be default editor in mc?

When I hit F4, gedit should be used rather than mc's default editor.

share|improve this question

2 Answers 2

up vote 6 down vote accepted

Set your EDITOR environment variable to gedit and go into mc's options and disable the internal editor.

share|improve this answer
Thanks! that worked. Do you happen to know how to use gedit also for VIEWING? – user36028 Aug 21 '10 at 11:03
How to pass options for editor? EDITOR='rsub --port 52697' seems does not work. MC run just editor without options (( – Eugen Konkov Sep 14 at 9:34
@EugenKonkov Please use the button that says "ask question" to ask this question. – Kevin Panko Sep 14 at 13:45

As for the viewer, mc will use the one specified by the PAGER variable (“less” on my OS)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.