On Mon, 8 Feb 2010 19:38:15 -0500 Haines Brown KB1GRM ET1 wrote:
> Tbanks, but apparently I missed something. I have a 
> /usr/share/mc/bin/mc-wrapper.sh. In it I append the line:
> 
>   EDITOR=/usr/bin/emacsclient
> 
> The mc editor, however, remains nano. The line is ignored.

Please write exactly what you did.

/usr/share/mc/bin/mc-wrapper.sh must be run directly or via some wrapper
like /etc/bashrc.d/mc.sh.

In mc-wrapper.sh, I added

EDITOR=/usr/bin/vim

line before 

/usr/bin/mc -P "$MC_PWD_FILE" "$@"

then started mc and unchecked the 'use internal edIt' option. If I
press F4 key, the selected file is opened in vim.

-- 
Andrew
_______________________________________________
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc

Reply via email to