Wednesday, September 22, 2010

Re: Find mappings for

On Sep 22, 11:38 am, Bee <200...@calcentral.com> wrote:
> On Sep 22, 3:03 am, Christian Brabandt <cbli...@256bit.org> 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.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment