Skip to content

Commit 7aaacd3

Browse files
authored
Merge pull request #1836 from h-east/update-gui_x11
Update gui_x11.{txt,jax}
2 parents d86a5be + ee6c48d commit 7aaacd3

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

doc/gui_x11.jax

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*gui_x11.txt* For Vim バージョン 9.1. Last change: 2024 Nov 11
1+
*gui_x11.txt* For Vim バージョン 9.1. Last change: 2024 Nov 17
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -711,6 +711,24 @@ Note "+ レジスタのテキストはビジュアル選択しただけで変更
711711

712712
Warning: Clipboard register not available, using register 0 ~
713713

714+
*W24*
715+
Vim にはオリジナルの Vi との互換性だけを追求した小さなビルドから、多くの改善
716+
(GUI 等) を含む拡張ビルドまでさまざまな種類がある。ただし、サーバーや組み込み
717+
システムでは、この機能には X11 ライブラリが必要であるため、Vim は通常クリップ
718+
ボードサポートなしでコンパイルされる。":version" の出力でフラグ |+clipboard|
719+
または -clipboard を確認すること。前者はクリップボードサポートが存在することを
720+
意味し、後者は Vim にクリップボードサポートが含まれていないことを意味する。
721+
722+
"* または "+ レジスタにアクセスしようとしていて、Vim がクリップボードをサポー
723+
トしていない場合は、次の警告が表示される:
724+
725+
Warning: Clipboard register not available. See :h W24~
726+
727+
クリップボードをサポートしていない vim を持っているが、クリップボードを使用し
728+
たい場合は、vim-enhanced や vim-gtk3 等のより拡張された Vim パッケージをインス
729+
トールしてみてほしい (GUI パッケージには通常、クリップボードをサポートしている
730+
ターミナル Vim も付属している)。
731+
714732
*x11-cut-buffer*
715733
既定では 8 つのカットバッファがある。CUT_BUFFER0 から CUT_BUFFER7 まで。Vim
716734
は CUTBUFFER0 のみを使う。これは xterm が標準的に使っているものである。

en/gui_x11.txt

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*gui_x11.txt* For Vim version 9.1. Last change: 2024 Nov 11
1+
*gui_x11.txt* For Vim version 9.1. Last change: 2024 Nov 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -716,6 +716,25 @@ output a warning:
716716

717717
Warning: Clipboard register not available, using register 0 ~
718718

719+
*W24*
720+
Vim comes in different flavors, from a tiny build, that just tries to be
721+
compatible to original Vi, to enhanced builds which include many improvements
722+
(like a GUI). However, on servers and embedded systems, Vim is typically
723+
compiled without clipboard support, since this feature requires X11 libraries
724+
to be present. Check the ":version" output for the flag |+clipboard| or
725+
-clipboard. The former means clipboard support is present while the latter
726+
means your Vim does not contain clipboard support.
727+
728+
In the case when you are trying to access the "* or "+ register and Vim has
729+
no clipboard support, you will see this warning:
730+
731+
Warning: Clipboard register not available. See :h W24~
732+
733+
If you have a vim with no clipboard support but would like to use the
734+
clipboard, try to install a more enhanced Vim package like vim-enhanced or
735+
vim-gtk3 (the gui packages usually also come with a terminal Vim that has
736+
clipboard support included).
737+
719738
*x11-cut-buffer*
720739
There are, by default, 8 cut-buffers: CUT_BUFFER0 to CUT_BUFFER7. Vim only
721740
uses CUT_BUFFER0, which is the one that xterm uses by default.

0 commit comments

Comments
 (0)