[Sussex] Vi? - editor poll
John Crowhurst
fyremoon at fyremoon.net
Tue Jul 27 20:16:12 UTC 2004
>
>> Just to be clear: vi is _not_ the standard UNIX editor ( ed is!),
>> --
>> Geoff Teale
>> Cmed Technology
>>
>
> POLL:-
>
> Keith "it's just a bit of fun" Barrett asks, "Which *nix editors do you
> know to survival level?"
>
> a. nano (doesn't do much and be careful to always use -w) ____1
> b. vi (don't forget to press ESC! and if only the help helped)
> ____1
> c. ed (glowers at you sullenly & responds ? until q is entered) ____
> d. emacs (the choice of the freest of the free)
> ____
I've never used nano, but I've used the other 3.
I never liked vi when I first started using it, but now I can use it
rather well, and its bearable.
I started using ed in the form of edline in 2001, its horrible but if you
don't have a visual screen you need something non-visual to edit things.
It edits by line.
a appends a line, ending with a dot.
i inserts a line, so 2i will insert a line after line 2, end with a dot.
c changes a line, so 3c will allow you to replace line 3 with something else.
l lists a line(s), 1,20l will list all the lines from 1 to 20. 1,$l lists all
s/// search+replace like vi
m moves lines
d deletes a line
w saves the file
q quits.
Emacs (eighty megabytes and constantly swapping) isn't an editor, its an
operating system :P
--
John
More information about the Sussex
mailing list