From owner-freebsd-questions Tue Nov 23 12:22:33 1999 Delivered-To: freebsd-questions@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 0A0A615327 for ; Tue, 23 Nov 1999 12:22:30 -0800 (PST) (envelope-from bright@wintelcom.net) Received: from localhost (bright@localhost) by fw.wintelcom.net (8.9.3/8.9.3) with ESMTP id MAA12985; Tue, 23 Nov 1999 12:49:11 -0800 (PST) Date: Tue, 23 Nov 1999 12:49:10 -0800 (PST) From: Alfred Perlstein To: James A Wilde Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Programmers' editor? In-Reply-To: <009901bf35ee$d892ef60$8208a8c0@iqunlimited.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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