Skip to content

Update tabpage.{txt,jax} #2176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions doc/tabpage.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*tabpage.txt* For Vim バージョン 9.1. Last change: 2025 Jul 17
*tabpage.txt* For Vim バージョン 9.1. Last change: 2025 Jul 20


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -145,8 +145,8 @@ CTRL-W gF カーソル下のファイル名のファイルを新しいタブペ
:tabclose $ " 右端のタブページを閉じる
:tabclose # " 最後にアクセスしたタブページを閉じる

タブが閉じられると、次のタブページがカレントタブページになります。この挙動は、
'tabclose' オプションを使用してカスタマイズできます。
タブページが閉じられると、次のタブページがカレントタブページになります。この挙
動は、'tabclose' オプションを使用してカスタマイズできます。

*:tabo* *:tabonly*
:tabo[nly][!] カレントタブページ以外のすべてのタブページを閉じます。
Expand Down Expand Up @@ -255,8 +255,8 @@ CTRL-W g<Tab> 最後にアクセスしたタブページへ移動します。
:[N]tabm[ove]
カレントタブページを N 番目のタブページの後ろに移動します。カ
レントタブページを1番目のタブページにするにはゼロを指定します。
N は移動前に数えられるので、2番目のタブがカレントタブであれば、
`:tabmove 1` と `:tabmove 2` は効果がありません。
N は移動前に数えられるので、2 番目のタブページがカレントタブで
あれば、`:tabmove 1` と `:tabmove 2` は効果がありません。
N を省略すると最後に移動します。 >
:.tabmove " 何もしない
:-tabmove " タブページを左に移動
Expand All @@ -279,9 +279,9 @@ CTRL-W g<Tab> 最後にアクセスしたタブページへ移動します。
:tabmove +1 " 同上
<

Note :Ntabmove を使うことでタブを N 番目のタブの後ろに移動することができること
、:+Ntabmove を使って N 個後ろに移動できることに注意してください。この場合に
+N が何を意味するかについては、|[range]| を参照してください。
Note :Ntabmove を使うことでタブページを N 番目のタブページの後ろに移動すること
ができることと、:+Ntabmove を使って N 個後ろに移動できることに注意してくださ
い。この場合に +N が何を意味するかについては、|[range]| を参照してください。


タブページごとにコマンドを実行するには:
Expand Down
24 changes: 12 additions & 12 deletions en/tabpage.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*tabpage.txt* For Vim version 9.1. Last change: 2025 Jul 17
*tabpage.txt* For Vim version 9.1. Last change: 2025 Jul 20


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -38,9 +38,9 @@ commands, |:windo|, |:all| and |:ball| (when not using the |:tab| modifier).
The commands that are aware of other tab pages than the current one are
mentioned below.

Tabs are also a nice way to edit a buffer temporarily without changing the
current window layout. Open a new tab page, do whatever you want to do and
close the tab page.
Tab pages are also a nice way to edit a buffer temporarily without changing
the current window layout. Open a new tab page, do whatever you want to do
and close the tab page.

==============================================================================
2. Commands *tab-page-commands*
Expand Down Expand Up @@ -145,7 +145,7 @@ something else.
:tabclose $ " close the last tab page
:tabclose # " close the last accessed tab page

When a tab is closed the next tab page will become the current one. This
When a tab page is closed the next tab page will become the current one. This
behaviour can be customized using the 'tabclose' option.

*:tabo* *:tabonly*
Expand Down Expand Up @@ -252,7 +252,7 @@ REORDERING TAB PAGES:
:[N]tabm[ove]
Move the current tab page to after tab page N. Use zero to
make the current tab page the first one. N is counted before
the move, thus if the second tab is the current one,
the move, thus if the second tab page is the current one,
`:tabmove 1` and `:tabmove 2` have no effect.
Without N the tab page is made the last one. >
:.tabmove " do nothing
Expand All @@ -276,9 +276,9 @@ REORDERING TAB PAGES:
:tabmove +1 " as above


Note that although it is possible to move a tab behind the N-th one by using
:Ntabmove. And move it by N places by using :+Ntabmove. For clarification what
+N means in this context see |[range]|.
Note that although it is possible to move a tab page behind the N-th one by
using :Ntabmove. And move it by N places by using :+Ntabmove. For
clarification what +N means in this context see |[range]|.


LOOPING OVER TAB PAGES:
Expand Down Expand Up @@ -363,8 +363,8 @@ A "+" will be shown for a tab page that has a modified window. The number of
windows in a tabpage is also shown. Thus "3+" means three windows and one of
them has a modified buffer.

An "X" (close button) will appear in the last column when multiple tabs are
open, but only if the 'mouse' is enabled.
An "X" (close button) will appear in the last column when multiple tab pages
are open, but only if the 'mouse' is enabled.

The 'tabline' option allows you to define your preferred way to tab pages
labels. This isn't easy, thus an example will be given here.
Expand Down Expand Up @@ -398,7 +398,7 @@ pages and define labels for them. Then get the label for each tab page. >
let s ..= ' %{MyTabLabel(' .. (i + 1) .. ')} '
endfor

" after the last tab fill with TabLineFill and reset tab page nr
" after the last tab page fill with TabLineFill and reset tab page nr
let s ..= '%#TabLineFill#%T'

" right-align the label to close the current tab page
Expand Down