Tony Mechelynck wrote:

> Hello, I just noticed a difference between :wincmd and Ctrl-W — namely, 
> in the former, but not in the latter, you can use more "count" values 
> than just a number. Here are a few examples:
> 
>       :$wincmd w
>       " jumps to the last window
> 
> However,
> 
>       :.-4wincmd w
>       " does not jump to the 4th window before the current one.
> 
> Looks like $ does mean "maximum possible" but . doesn't mean "current 
> window" — maybe it still means "current line".
> 
> Bram, do you think this use with $ is worth documenting? And y'all 
> people, what do you think?

As you noticed $ stands for the number of lines in the current window,
like it does with most commands.  It's not very useful for ":wincmd".

I'll add a note that when the count is larger than the number of windows
it moves to the last window.

-- 
GUARD #1:  What, ridden on a horse?
ARTHUR:    Yes!
GUARD #1:  You're using coconuts!
ARTHUR:    What?
GUARD #1:  You've got two empty halves of coconut and you're bangin' 'em
           together.
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to