Hi Roland, 2015/3/18(Wed) 5:27:09 UTC+9 Roland Eggner: > Hi Hirohito! > > > On 2015-03-17 Tuesday at 09:03 -0700 h_east wrote: > > Specification is below. > > > > $ vim -N -u NONE -p 1 2 3 4 5 -c "tabnext" > > > > 1 [2] 3 4 5 " Now tab page status. [ ] is current tab page. > > (1) :tabm " 1 3 4 5 [2] move to last > > (2) :.tabm " do nothing > > (3) :.+tabm " 1 3 [2] 4 5 Move to the right > > (4) :.+1tabm " as above > > (5) :+tabm " as above > > (6) :+1tabm " as above > > (7) :tabm + " as above > > (8) :tabm +1 " as above > > (9) :.-tabm " [1] 2 3 4 5 Move to the left > > (10) :.-1tabm " as above > > (11) :-tabm " as above > > (12) :-1tabm " as above > > (13) :tabm - " as above > > (14) :tabm -1 " as above > > (15) :0tabm " [2] 1 3 4 5 Move to the first > > (16) :tabm 0 " as above > > (17) :1tabm " do nothing (already moved) > > (18) :tabm 1 " as above > > (19) :2tabm " do nothing (already moved) > > (20) :tabm 2 " as above > > (21) :3tabm " 1 3 [2] 4 5 Move to after tab page 3 > > (22) :tabm 3 " as above > > (23) :4tabm " 1 3 4 [2] 5 Move to after tab page 4 > > (24) :tabm 4 " as above > > (25) :5tabm " 1 3 4 5 [2] Move to last tab page > > (26) :tabm 5 " as above > > (27) :6tabm " as above > > (28) :tabm 6 " as above > > (29) :$tabm " as above > > (30) :tabm $ " as above > > 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.
> (9) :.-tabm " [1] 2 3 4 5 Move to the left Oops. It was typo. Correctly is here. (9) :.-tabm " [2] 1 3 4 5 Move to the left I represent specification description below. $ vim -N -u NONE -p A B C D E -c "tabnext 3" A B [C] D E " Original state of tab pages. [ ] is current tab page. Note: These patterns are not intended to run in order. Each it describes the change from Original state (A B [C] D E). (1) :tabm " A C D E [C] " move to the last (2) :.tabm " do nothing (3) :.+tabm " A B D [C] E " Move to the right (4) :.+1tabm " as above (5) :+tabm " as above (6) :+1tabm " as above (7) :tabm + " as above (8) :tabm +1 " as above (9) :.-tabm " A [C] B D E " Move to the left (10) :.-1tabm " as above (11) :-tabm " as above (12) :-1tabm " as above (13) :tabm - " as above (14) :tabm -1 " as above (15) :0tabm " [C] A B D E " Move to the first (16) :tabm 0 " as above (17) :1tabm " A [C] B D E " Move to after tab page 1 (18) :tabm 1 " as above (19) :2tabm " do nothing (already there) (20) :tabm 2 " as above (21) :3tabm " do nothing (already there) (22) :tabm 3 " as above (23) :4tabm " A B D [C] E " Move to after tab page 4 (24) :tabm 4 " as above (25) :5tabm " A B D E [C] " Move to last tab page. (Equal number of tab pages) (26) :tabm 5 " as above (27) :6tabm " as above (Greater than number of tab pages) (28) :tabm 6 " as above (29) :$tabm " as above (Exactly specify the last) (30) :tabm $ " as above Thanks for the suggestion. Best regards, Hirohito Higashi (a.k.a h_east) -- -- 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.
