Skip to content

Commit 37d1f84

Browse files
authored
Merge pull request #2348 from h-east/update-gui_w32
Update gui_w32.{txt,jax}
2 parents 866d5e4 + 036c080 commit 37d1f84

File tree

2 files changed

+39
-7
lines changed

2 files changed

+39
-7
lines changed

doc/gui_w32.jax

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*gui_w32.txt* For Vim バージョン 9.1. Last change: 2025 Aug 06
1+
*gui_w32.txt* For Vim バージョン 9.1. Last change: 2025 Oct 11
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -487,4 +487,20 @@ ToUnicode() Win API 呼び出しに切り替えられた。このアプローチ
487487
set VIM_KEYCODE_TRANS_STRATEGY=experimental
488488
gvim.exe
489489
<
490+
491+
タイトルバー *gui-w32-title-bar*
492+
493+
Windows 11 以降では、|'go-C'| オプションを有効にすることで、gVim のタイトルバー
494+
(キャプションバーとも呼ばれる) をカスタマイズできる。
495+
496+
有効にすると、外観は次の 2 つのハイライトグループによって制御される:
497+
1. |hl-TitleBar| -- アクティブウィンドウのタイトルバーの色を設定する。
498+
2. |hl-TitleBarNC| -- 非アクティブウィンドウのタイトルバーの色を設定する。
499+
500+
システムのデフォルトのタイトルバーの色を使用するには、ハイライトグループを
501+
`NONE` に設定する: >
502+
503+
hi TitleBar guibg=NONE guifg=NONE
504+
hi TitleBarNC guibg=NONE guifg=NONE
505+
<
490506
vim:tw=78:sw=4:ts=8:noet:ft=help:norl:

en/gui_w32.txt

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*gui_w32.txt* For Vim version 9.1. Last change: 2025 Aug 06
1+
*gui_w32.txt* For Vim version 9.1. Last change: 2025 Oct 11
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -235,7 +235,7 @@ The "* register reflects the contents of the clipboard. |quotestar|
235235

236236
When the "unnamed" string is included in the 'clipboard' option, the unnamed
237237
register is the same. Thus you can yank to and paste from the clipboard
238-
without prepending "* to commands. If this doesn't work use the "unnamedplus"
238+
without prepending "* to commands. If this doesn't work use the "unnamedplus"
239239
string in the 'clipboard' option.
240240

241241
The 'a' flag in 'guioptions' is not included by default. This means that text
@@ -458,17 +458,17 @@ Keycode translation strategy *w32-experimental-keycode-trans-strategy*
458458

459459
In Patch v8.2.4807 W32 GVIM was changed over to experimental keycode
460460
translation method with the aim to be able to use more keyboard shortcuts and
461-
especially supporting non-standard keyboard layouts. In order to implement
461+
especially supporting non-standard keyboard layouts. In order to implement
462462
this support Win API TranslateMessage() call was dropped, and instead the
463-
recognition of keycode was changed over to ToUnicode() Win API call. This
463+
recognition of keycode was changed over to ToUnicode() Win API call. This
464464
approach uncovered numerous corner cases, which are apparently covered by
465465
TranslateMessage() implementation, each of it is necessary to be dealt with on
466-
an individual basis. Therefore the decision was taken to declare this
466+
an individual basis. Therefore the decision was taken to declare this
467467
functionality experimental for the time being and to recover "classic" keycode
468468
translation method as default again.
469469

470470
Discussion about use of "experimental" keycode translation method will
471-
probably last some time yet. In the meantime, if you are impacted by this
471+
probably last some time yet. In the meantime, if you are impacted by this
472472
change over back to "classic" keycode translation method in W32 GVIM, you can
473473
enable "experimental" translation method again in your vimrc using following
474474
snippet:
@@ -488,4 +488,20 @@ VIM_KEYCODE_TRANS_STRATEGY can be set to the desired value ("experimental" or
488488
set VIM_KEYCODE_TRANS_STRATEGY=experimental
489489
gvim.exe
490490
<
491+
492+
Title Bar *gui-w32-title-bar*
493+
494+
Starting with Windows 11, you can customize the gVim title bar (also known as
495+
the caption bar) by enabling the |'go-C'| option.
496+
497+
Once enabled, the appearance is controlled by two highlighting groups:
498+
1. |hl-TitleBar| -- Sets the color of the title bar for the active window.
499+
2. |hl-TitleBarNC| -- Sets the color of the title bar for inactive windows.
500+
501+
To use the system's default title bar colors, set highlighting groups to
502+
`NONE`: >
503+
504+
hi TitleBar guibg=NONE guifg=NONE
505+
hi TitleBarNC guibg=NONE guifg=NONE
506+
<
491507
vim:tw=78:sw=4:ts=8:noet:ft=help:norl:

0 commit comments

Comments
 (0)