Hi Hirohito!
I am unsure if I understand your specification correctly. Within the
ex-commands “2” always means the 2nd tab page? Whereas within the comments “2”
always means the tab page holding the buffer named “2”?
Would the result of piping the vim command line and the comments through
“tr 1-5 A-E”, and leaving the ex commands unmodified, equivalently represent
your thoughts?
> diff -r 3bd553b9e4bf runtime/doc/tabpage.txt
> --- a/runtime/doc/tabpage.txt Sat Mar 14 15:35:52 2015 +0100
> +++ b/runtime/doc/tabpage.txt Tue Mar 17 15:09:50 2015 +0900
> @@ -202,23 +202,29 @@
> Move the current tab page to after tab page N. Use zero to
> make the current tab page the first one. Without N the tab
> page is made the last one. >
> + :.tabmove " do nothing
> :-tabmove " move the tab page to the left
> - :tabmove " move the tab page to the right
> - :.tabmove " as above
> - :+tabmove " as above
> + :+tabmove " move the tab page to the right
> :0tabmove " move the tab page to the beginning of the tab
> " list
> - :$tabmove " move the tab page to the end of the tab list
> -<
> + :tabmove 0 " as above
> + :tabmove " move the tab page to the last
> + :$tabmove " as above
> + :tabmove $ " as above
>
> :tabm[ove] +[N]
> :tabm[ove] -[N]
> Move the current tab page N places to the right (with +) or to
> - the left (with -).
> + the left (with -). >
> + :tabmove - " move the tab page to the left
> + :tabmove -1 " as above
> + :tabmove + " move the tab page to the right
> + :tabmove +1 " as above
> +
>
> Note that although it is possible to move a tab behind the N-th one by using
s/although // ?
> -:Ntabmove, it is impossible to move it by N places by using :+Ntabmove. For
> -clarification what +N means in this context see |[range]|.
> +:Ntabmove. And move it by N places by using :+Ntabmove. For clarification what
2 spaces at sentence boundaries, as in the context part of the first diff hunk?
> ++N means in this context see |[range]|.
>
>
> LOOPING OVER TAB PAGES:
Must leave testing of your patch to others, sorry.
Despite having very limited time these days, I want to say many thanks for your
careful and accurate work! Exactly such maturing of the range and bulk features
introduced since 7.4.530 is required for users to really gain the additional
“power”, which these complex features add to the vim language.
--
Roland Eggner