Ответ на сообщение «Re: Find mappings for <ctrl>», 
присланное в 23:17:14 22 сентября 2010, Среда,
отправитель Bee:

> Still not sure about the -p because it does not look like it is open a
> tab.
> 
> --OR--
> 
> Is this:
> 
> -  move one line upward
> p  Put the text after the cursor

No, see :h :p. :{range}p is equivalent to 
:echo join(getline(startline, endline), "\n").
`-' is just a shortcut to `-1', so `,/^$/-' means 
``from the current line to the line before next empty line''.
See `:h cmdline-ranges' if you want to write stuff like this.

Текст сообщения:
> On Sep 22, 11:50 am, Bee <[email protected]> wrote:
> > On Sep 22, 11:38 am, Bee <[email protected]> wrote:
> > > On Sep 22, 3:03 am, Christian Brabandt <[email protected]> wrote:
> > > > Hi Oivvio!
> > > > 
> > > > On Mi, 22 Sep 2010, Oivvio Polite wrote:
> > > > > On Tue, Sep 21, 2010 at 11:07:22AM +0200, Asis Hallab wrote:
> > > > > > Use:
> > > > > > map <c-w>
> > > > > 
> > > > > That gives my "No mapping found" although all of the window
> > > > > handling stuff is prefixed by <ctrl-w> as per default.
> > > > 
> > > > These "mappings" are defined in the help:
> > > > :h windows.txt | g/^CTRL-W/,/^$/-p
> > > 
> > > ok, this is very cool
> > > Please explain this part g/^CTRL-W/,/^$/-p
> > > 
> > > g/^CTRL-W/  global find all lines starting with CTRL-W
> > > 
> > > ,           ??? additional items
> > > 
> > > /^$/        ??? empty lines
> > > 
> > > -p          open a new (tab?) page
> > 
> > I think I understand:
> > 
> > g/^CTRL-W/  global find all lines starting with CTRL-W
> > 
> > ,           range
> > 
> > /^$/        until an empty line
> > 
> > -p          open a new (tab?) page
> > 
> > Still not sure about the -p because it does not look like it is open a
> > tab.
> 
> Still not sure about the -p because it does not look like it is open a
> tab.
> 
> --OR--
> 
> Is this:
> 
> -  move one line upward
> p  Put the text after the cursor
> 
> That makes more sense, but is it correct?

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to