tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Adding a simple editor to the base system



On Thu, Feb 12, 2009 at 3:45 PM, David Brownlee <abs%netbsd.org@localhost> 
wrote:
>        "If you want to edit a file type 'edit file' if you are
>        on a system which has the optional easy editor installed,
>        otherwise it will drop you into the vi editor, at which point
>        you'll need to press : then q then enter, and if that fails
>        try ESC then : then q then ! then enter. Better still, just
>        type 'ee file', as that way if its not installed you get
>        a simple error. Then you have to find an editor you can use, ah,
>        there you can try pico, or nano, or, well, here is a tutorial on
>        vi. Spend a few hours playing with it."
>

"If you want to edit a file type 'ee file', make your modifications,
then press Ctrl and 'c', enter 'w', enter the name of the file you
just edited [be sure you didn't make mistake], then press Ctrl and
'c', enter 'q' and then 'y' and ENTER. If that fails, press ESC, then
'a', and finally 'y'."

This is with ee version 1.4.1 from FreeBSD 7.0.

I think we don't have the same definition of "easy to use". This
editor provide direct shortcut to edit text and do advanced things,
but you need complex typing to just save a file, and quit. It has two
different path to quit and each path ask a different question, one
opposed to the other. It always asks which file to save to even if one
was specified on the command line. If you make a change to a file,
save this change and try to quit, it will still tells you that you
that "changes have been made". vi(1)'s MMI is a pure pleasure compared
to ee(1)'s.

 - Arnaud


Home | Main Index | Thread Index | Old Index