Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 1999 12:49:10 -0800 (PST)
From:      Alfred Perlstein <bright@wintelcom.net>
To:        James A Wilde <james.wilde@telia.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Programmers' editor?
Message-ID:  <Pine.BSF.4.21.9911231240360.4557-100000@fw.wintelcom.net>
In-Reply-To: <009901bf35ee$d892ef60$8208a8c0@iqunlimited.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 23 Nov 1999, James A Wilde wrote:

> Related question from a greenhorn.
> 
> Most of my editing is administrative editing of configuration
> files and the like.  For that vi is a pita with all that programmers
> crap.  The only functionality I use is x for delete, i for input,
> Alt $ for goto eol (I don't know how you get to the beginning) and
> d with the down arrow to remove two lines, which means that I often
> have to insert a line first in order to delete the one line I need
> to remove.
> 
> Is there for UNIX  something with the lack of complexity of the
> DOS edit program?  Simple marking, cutting, pasting is all I really
> need.
> 
> Thanks for any tips.

two tips:
please set your line wrap to 70 characters.
don't refer to my favorite editor as 'crap' at least mine knows
how to format email.

you may want to try 'ee' it comes with freebsd and keeps it's help
at the top.  but let me answer your vi questions:

0 - goto beginning of line
dd - delete a single line 
     precede with a number to delete N lines 5dd - del 5 lines
dG - delete to end of file
d1G - delete to top of file
u - undo
P - paste deleted selection before cursor location
p - paste deleted selection after ursor location
A - jump to end of line and go to edit mode
I - jump to beginning of line and go to edit mode.

-Alfred




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.9911231240360.4557-100000>