Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 May 2010 15:11:28 +1000
From:      "Murray Taylor" <MTaylor@bytecraft.com.au>
To:        <questions@freebsd.org>
Subject:   RE: text editor
Message-ID:  <E194A4DE220BBE4FAF3AB7C4E7EDA086C426B8@svmailmel.bytecraft.internal>
In-Reply-To: <4C01DD3F.3040000@a1poweruser.com>

next in thread | previous in thread | raw e-mail | index | archive | help
=20yep ... its called vi


place cursor at the line at hte top (or bottom) of the block

press   ma

(put marker a on the line)


move your cursor to the line at the other end (bottom ot top)
of the block

press     d'a

this will delete between the marked line and the cursor

to move the block.... delete it as above, then put the cursor where you
want it
to go and press  p

(pastes the last deleted whatever in the new place)

to copy a block ...=20

ma
(move cursor)
y'a
(move cursor)
p

y is the yank into the default storage buffer instead of deleting into
the buffer


and you can use named buffers also ...   a through z

"ad'a    deletes test from marker a to current into buffer a

"ap        pastes from buffer a

dd	delete current line into default buffer

"bdd   delete current line into buffer b =20



etc etc


=20
Murray Taylor
Bytecraft Systems
Special Projects Engineer

P: +61 3 8710 0600
D: +61 3 9238 4275
F: +61 3 9238 4140

--
=20|_|0|_|	"Absence of evidence
=20|_|_|0|	is not evidence of absence"
=20|0|0|0|	Carl Sagan

-----Original Message-----
From: owner-freebsd-questions@freebsd.org
[mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Fbsd1
Sent: Sunday, May 30, 2010 1:37 PM
To: questions@freebsd.org
Subject: text editor

Been using ee and been happy.

Now I have need for an editor with block commands.
Put dd on the first line of sequence number you want to start deleting
and dd on the
last line of the block and hit enter and the block of lines are deleted.
OR
Put cc on first line and cc on last line of black to copy and enter "I"
on line where
you want the copied block to be inserted after.
Also same for mm meaning move block.

Is there any editors with a function like this?
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"
---------------------------------------------------------------
The information transmitted in this e-mail is for the exclusive
use of the intended addressee and may contain confidential
and/or privileged material. Any review, re-transmission,
dissemination or other use of it, or the taking of any action
in reliance upon this information by persons and/or entities
other than the intended recipient is prohibited. If you
received this in error, please inform the sender and/or
addressee immediately and delete the material.=20

E-mails may not be secure, may contain computer viruses and
may be corrupted in transmission. Please carefully check this
e-mail (and any attachment) accordingly. No warranties are
given and no liability is accepted for any loss or damage
caused by such matters.
---------------------------------------------------------------

### This e-mail message has been scanned for Viruses by Bytecraft ###



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