How can I set
gedit to be default editor in
When I hit F4,
gedit should be used rather than
mc's default editor.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
To extend the answer by Kevin Panko and to address the comment to that answer by Eugen Konkov, I would like to share my workaround for Midnight Commander ignoring arguments in
$EDITOR. Instead of passing arguments in
$EDITOR definition directly, one can define an editor command with arguments in a script and set
$EDITOR to that script.
For example, to ensure that each instance of vim has a servername, I use:
EDITOR="/path/editor-cmd.sh" /path/editor-cmd.sh: /usr/local/bin/vim --servername VIM "$@"