On 12/04/09 21:16, Raúl Núñez de Arenas Coronado wrote:
[...]
> Dunno. If you know exactly the number of windows you have (which looks
> improbable), then you can use that number. If you don't know the exact
> number, but you know the order of magnitude, you may be able to use
> maybe 9 or even 99 as the count, which for me are easier to type that $
> in the context of a count.

I currently have 21, and my custom tabline even says it, but I rarely 
look at it. In fact my first thought was :echo winnr('$')

I didn't type ":$wincmd w" in full every time, I used :$<Up> which 
brought back that command from command-line history; but with my 
mappings, 99 followed by F11 -- which is mapped to <C-W>w -- would do 
just as well.

>
> Of course, is a personal opinion, or a matter of taste.

Of course, but I value your opinion, even if thereafter I'll do what 
pleases me anyway.

>
> Probably documenting that counts in the excess of the number of windows
> go to the bottom-right window won't do any harm, since it doesn't invite
> to use '$' as a synonim for "last window".
>

I think so too.

Well, I could define

        :command -bar -nargs=0 LastWin exe winnr('$') 'wincmd w'
        :cnoreabbrev LW LastWin

but with 'lines' set at 63 in a maximized gvim (with a size-7 font which 
isn't very big), I guess 99 is safely above the max possible number of 
windows I could have (considering that I only rarely use vertical splits).


Best regards,
Tony.
-- 
Probable-Possible, my black hen,
She lays eggs in the Relative When.
She doesn't lay eggs in the Positive Now
Because she's unable to postulate how.
                -- Frederick Winsor

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

Reply via email to