Midnight Commander’s Editor
For those of you who are vim, emacs et alias aficionados you may have noticed that those tools are missing from the SCLive distribution. As you know I have tried to keep this distribution lean and focused on SystemC as a result I had to make some compromise regarding the selection of tools available on this distribution. In exchange though the SCLive is small enough to be burnt on a USB stick or a mini CD as well as being run inside a virtual environment such as QEMU or VMware player.
Rejoice! Although the SCLive does not have vi, vim or emacs it has a perfectly good alternative called Midnight Commander.
Midnight Commander has a large following in the Linux / UNIX world as it is a very light but fully featured file management tool that has an equally powerful file editor inside it.
To invoke Midnight Commander, type: mc
The editor part of Midnight Commander runs as a text based interface, very much like vi or nano and is very easy to utilize. It features:
Block copy, move, delete, cut, paste; key for key undo; pull-down menus; file insertion; macro definition; regular expression search and replace (and our own scanf-printf search and replace); shift-arrow MSW-MAC text highlighting (for the linux console only); insert-overwrite toggle; word-wrap; a variety of tabbing options; syntax highlighting for various file types such as C++.
To invoke the Midnight Commander’s editor, type: mcedit
Alternatively if you are already inside a Midnight Commander window you can select the file you want to edit and then press F4.
Using the editor is very intuitive and you can even configure it to work like emacs. One little tip though; In addition to the functions that can be access directly via the Function keys, don’t forget to press F9 to have access to the top menu bar from which you can do a myriad of operations.
That’s it, give it a go you will see how suprisingly easy it is to use. You can use the command: