unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Rainer Stengele <rainer.stengele@online.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: add an empty line at the begin of a rectangle
Date: Sun, 10 Dec 2017 18:36:36 +0000	[thread overview]
Message-ID: <CAFyQvY2Vxfz6BJ86kDaUVHjTOjX-kYhFg5wm-SdBPU66Bxsz5w@mail.gmail.com> (raw)
In-Reply-To: <p0jsmd$gp9$1@blaine.gmane.org>

On Sun, Dec 10, 2017 at 1:00 PM Rainer Stengele <rainer.stengele@online.de>
wrote:

> Hi,
>
> I believe a simple question but I cannot find a solution:
>
> I want to add an empty line at the begin of a rectangle and thus shift the
> while rest of only that column in the buffer down by 1 row.
> Example:
>
> Having:
>
> AAAA 0000
> BBBB 1111
> CCCC 2222
>       3333
>
> I want to get:
>
>       0000
> AAAA 1111
> BBBB 2222
> CCCC 3333
>

I believe you simply

1. Select the rectangle:
AAAA
BBBB
CCCC
2. Cut the rectangle: C-x r k
3. Move point to the starting of the line containing "1111".
4. Paste the rectangle back: C-x r y



-- 

Kaushal Modi


      reply	other threads:[~2017-12-10 18:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-10 17:59 add an empty line at the begin of a rectangle Rainer Stengele
2017-12-10 18:36 ` Kaushal Modi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFyQvY2Vxfz6BJ86kDaUVHjTOjX-kYhFg5wm-SdBPU66Bxsz5w@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rainer.stengele@online.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).