Christian Brabandt wrote:

> 
> I think, there is an inconsistency with regard to the :tabnext and 
> :tabprev commands:
> 
> 
> :tabn[ext] {count}
> {count}<C-PageDown>
> {count}gt     Go to tab page {count}.  The first tab page has number one.
> 
> :tabp[revious] {count}
> :tabN[ext] {count}
> {count}<C-PageUp>
> {count}gT     Go {count} tab pages back.  Wraps around from the first one
>               to the last one.
> 
> Note, the first does go to the specified number, while the second goes 
> that many numbers back.
> 
> Could we adjust this, so that perhaps :tabn +{count} always goes {count} 
> number forwards and :tab {count} moves to the specified tabnumber
> and :tabprevious +{count} moves that many number backwards, while 
> :tabprevious {count} goes to the specified number? (and perhapse 
> -{count} goes into the opposite direction?)
> 
> This is slightly backwards compatible, so perhaps there are other 
> opinions?

I think we need to keep the current behavior.  Changing it might break a
plugin and upset those who are used to the current behavior.
I do think that "2gt" should have meant "go two tab pages forward", but
now that it already means "go to the second tab page", and people are
likely using that, we can't change it.

So we need a command to go two tabpages forward.  For the Ex command we
could use ":tabforward 2".

But it's more useful to have a neighbor to "gt".  There is no obvious
one...

-- 
If Pacman had affected us as kids we'd be running around in dark rooms,
munching pills and listening to repetitive music.
                       -- Marcus Brigstocke

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui