Apps :: Midnight Commander not saving changes??



Im using Midnight Commander to edit my /etc/lilo.conf
I "su" to ensure I can make the changes, and open the file. I can go to the line I need to change, and put in what I want, but I try to hit F2 to save and all I get is a "<F2>" printed in the line, or an audible "beep". Same for "F10" to exit. All I get is a beep!
What am I doing wrong?

Try going to "Options -> learn keys" to tell mc how it should be mapping its keys.
DSL does not use the default Midnight Commander text editor program called "mcedit".

Instead, it uses vi for the text editor.

Try some vi editor commands.   They should work.

I tried the "options-learn keys". The F2 wasnt mapped, but this didn't solve the problem.
Quote
DSL does not use the default Midnight Commander text editor program called "mcedit".

Instead, it uses vi for the text editor.

Try some vi editor commands.   They should work

I didn't go the "mcedit" route, I went to midnight commander in the right-click menu under "editors". I'll try VI.

Quote (Phinger @ Dec. 16 2005,16:03)
I didn't go the "mcedit" route, I went to midnight commander in the right-click menu under "editors". I'll try VI.

You may have misunderstood what cbagger said.  If you press F4 to edit in DSL's mc, you will be editing in vim regardless of whether you want to or not, so you will have to do :w to save and :wq to save and quit.
Next Page...
original here.