diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-04-21 18:08:39 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-04-21 18:08:39 +0200 |
commit | 40ce3a4e1f50badb75ca812e26557a9bc5fde8c6 (patch) | |
tree | 76b61256322ed7d01bbd3913ec3ae45f9d826b5a /runtime/doc/tabpage.txt | |
parent | 77354e78a887e1b59ac519c5a1cb0e7fe9fc5899 (diff) |
patch 7.4.709v7.4.709
Problem: ":tabmove" does not work as documented.
Solution: Make it work consistently. Update documentation and add tests.
(Hirohito Higashi)
Diffstat (limited to 'runtime/doc/tabpage.txt')
-rw-r--r-- | runtime/doc/tabpage.txt | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/runtime/doc/tabpage.txt b/runtime/doc/tabpage.txt index 2d44fe2ff5..46e0a8fde2 100644 --- a/runtime/doc/tabpage.txt +++ b/runtime/doc/tabpage.txt @@ -202,23 +202,29 @@ REORDERING TAB PAGES: 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 -: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 ++N means in this context see |[range]|. LOOPING OVER TAB PAGES: |