On 30 Oct 1998, in message <[EMAIL PROTECTED]>
  Tim <[EMAIL PROTECTED]> wrote:
| I've gotten really used to using the Source Entry Utility on our AS/400
| and was wondering if there is something like it out there for Linux.

Sounds like you want vi. (You can do this with emacs, too, but I'm a vi bigot.)

| Here are a couple of things that I find very useful:
| - by placing a 'c' in front of a line you can then place a 'a' or 'b' in
|   front of any other line you a copy of the line with the 'c' will be
|   placed there. (replacing 'c' with 'm' a move will take place).

At first line type yy (yank line - y followed by a motion yanks other stuff,
but several things just get doubled for the common case of a line: yy, dd etc).
Go to other line. Typing P puts a copy of the yanked line before it, p
puts a copy after it.

| - by placing a 'cc' or 'mm' at the beginning of say line 12 and another
|   pair at line 16, you can then then "copy" or "move" an entire block of
|   code by placing an 'a' or 'b' to place it before or after another line.

Go to first line. Type ma (mark as "a"). Go to second line. mb. Go to target.
Type:
        :'a,'bt.
for a copy,
        :'a,'bm.
for a move. "." means "the current line", so the above means move the lines
"a" through "b" to here.

There's other ways to do that one.

We've only scratched the surface, too.

| I could go on, but those who use an AS/400 know what I'm talking about. :)

You'll feel right at home with vi. There are several versions: vi, nvi,
elvis, vim. I'm partial to nvi, myself.

Emacs needs too much use of meta keys for me.
--
Cameron Simpson, DoD#743        [EMAIL PROTECTED]        http://www.zip.com.au/~cs/

EMACS: Escape Meta Alt Control Shift

Reply via email to