Re: vi editor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux