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. -- Roland Eggner -- -- 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.
pgpVYvAukqtbv.pgp
Description: PGP signature
