vi editor
Berna Massingill
bmassing at cs.trinity.edu
Sat Aug 26 16:55:42 UTC 2006
On Fri, Aug 25, 2006 at 03:50:16PM -0500, Les Mikesell wrote:
>> On Fri, 2006-08-25 at 22:30 +0200, Kevac Marko wrote:
>> > By the way, what is the best method to copy some text from one
>> > position in the file to another position?
>> >
>> > While using the simple method of mouse copy\paste we emphasize two
>> > problems:
>> >
>> > 1. We have to delete text from previous position using dd
>> > 2. If we copy text with tabs and than paste it, there are some
>> > additional tabs appearing
>>
>> Delete it with some variation of dd - numberdd to delete some number
>> of lines, or the ex mode d which takes any of the usual range selections
>> (:line#,line#d, or :.,/pattern/d, etc.), then go where you want it and
>> use P or p to put it before or after the cursor location respectively.
>>
"visual mode" works well for this too -- use "v" plus cursor-movement
commands to select the text, then "d" or "D" to delete it.
--
-- blm
More information about the fedora-list
mailing list