From owner-freebsd-questions Thu Sep 2 8: 3:49 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mobil.surnet.ru (mobil.surnet.ru [195.54.2.7]) by hub.freebsd.org (Postfix) with ESMTP id 1560115BF4 for ; Thu, 2 Sep 1999 08:03:31 -0700 (PDT) (envelope-from ilia@cgilh.chel.su) Received: (from uucgilh@localhost) by mobil.surnet.ru (8.9.1a/8.9.1) with UUCP id UAA15192; Thu, 2 Sep 1999 20:57:50 +0600 (UDT) Received: (from uucp@localhost) by cgilh.chel.su (8.8.7/8.8.7) with UUCP id TAA00745; Thu, 2 Sep 1999 19:51:55 +0600 Received: from localhost (ilia@localhost) by localhost.cgu.chel.su (8.9.2/8.9.2) with ESMTP id TAA00382; Thu, 2 Sep 1999 19:53:07 +0600 (ESS) (envelope-from ilia@cgilh.chel.su) X-Authentication-Warning: localhost.cgu.chel.su: ilia owned process doing -bs Date: Thu, 2 Sep 1999 19:53:07 +0600 (ESS) From: Ilia Chipitsine X-Sender: ilia@localhost.cgu.chel.su To: Anand Buddhdev Cc: Dan Larsson , "[FreeBSD-Questions-List] (E-post)" Subject: Re: VI editing query In-Reply-To: <19990902150259.E39002@africaonline.co.ke> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG also "[repeat count]dd", for instance "5dd" will delete 5 lines. (current line and 5 lines beneath the current) and, of course "d". for example "d" will remove current line and a line beneath. "d" will delete current line and a line above. "d" and "d" will only remove a character which is next to the left, next to the right. in old versions of vi you were expected to use "h" instead of , "l" instead of . "j"=arrow_up, "k"=arrow_down Regards, (Наилучшие пожелания) Ilia Chipitsine (Илья Шипицин) On Thu, 2 Sep 1999, Anand Buddhdev wrote: > On Thu, Sep 02, 1999 at 01:15:06PM +0200, Dan Larsson wrote: > > dd > > > Is it at all possible to delete the line on which the cursor stands and > > move the line below up one step (row) when editing a file in vi? If it is > > I'd be grateful if someone would tell me the secret key combination. > > -- > See complete headers for more info > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message