Apps :: midnight commander
When i wish to edit a document via midnight commander dsl defaults to vi. I would prefer to use either the internal editor mc usually comes with. Has this been disabled/deleted to save space?
Also on the latest version of dsl 0.8.3 although the midnight commander colours are improved i can't seem to resize the application space. All suggestions welcome !!
Thanks for any advice.
My guess is that the "mcedit" default editor was stripped out of the midnight commander program in order to save on disk space.
I agree that vi is difficult to use.
My suggestion for a compromise solution is to have mc use "nano" as the default text editor instead of "vi".
Most people (like me) can use nano without much trouble. vi is a different story.
Apparently there is no entry in the MC ini file to indicate which external editor to use. However, mc will use the envirnoment EDITOR variable. This is even better because some will want nano, others may want scite, still some? may want zile.
To test this, do the following from a shell window
export EDITOR=nano
mc
Then press F4 on a text file, you should be in editor nano.
Once you have picked your favorite editor then do the following.
Using your editor of choice edit the hidden file .bash_profile
add the following line just below the existing EXPORT line
export EDITOR=your_fav_editor
Save .bash_profile.
Now if you are running from liveCD or compressed file system, then be sure to add the following line to your filetool.lst
home/dsl/.bash_profile
Backup and then upon each restore you will have mc using your editor of choice.
Thanks for the tip.
I was wondering how the editor was chosen and did not see any obvious setting in a config file.
Wow .i just did it .. that was simple. Thanks a lot.
Next Page...
original here.