[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to do rectangular cut(visual block) in emacs
From: |
Tim X |
Subject: |
Re: How to do rectangular cut(visual block) in emacs |
Date: |
Wed, 25 Mar 2009 20:11:21 +1100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) |
Francis Moreau <francis.moro@gmail.com> writes:
> Hello,
>
> On Mar 24, 8:59 am, Tim X <t...@nospam.dev.null> wrote:
>> Move point to the top left corner and set the mark
>> Move point to the bottom right hand corner
>> Hit C-x r r <reg> where <reg> is a register. This will copy the
>> rectangle defined by the region into register <reg>
>>
>> Later, when you want to get that rectangle of text back, just hit C-x r
>> i <reg> and the contents of <reg> will be pasted into the buffer where
>> point is.
>>
>
> Now let say's I have the following text:
>
> a/ this is a line
> b/ this is a very long line
> c/ a short one
>
> and I want to copy the rectangle of this text without the a/ b/ c/
>
> How do I move to the bottom right corner without adding space to the
> last
> line ?
>
You can't. You have to make it a rectangle. However, you can remove the
extra spaces afterwards.
Tim
--
tcross (at) rapttech dot com dot au