Skip to content

Update gui_x11.{txt,jax} #1836

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
Nov 20, 2024
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
20 changes: 19 additions & 1 deletion doc/gui_x11.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*gui_x11.txt* For Vim バージョン 9.1. Last change: 2024 Nov 11
*gui_x11.txt* For Vim バージョン 9.1. Last change: 2024 Nov 17


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

Warning: Clipboard register not available, using register 0 ~

*W24*
Vim にはオリジナルの Vi との互換性だけを追求した小さなビルドから、多くの改善
(GUI 等) を含む拡張ビルドまでさまざまな種類がある。ただし、サーバーや組み込み
システムでは、この機能には X11 ライブラリが必要であるため、Vim は通常クリップ
ボードサポートなしでコンパイルされる。":version" の出力でフラグ |+clipboard|
または -clipboard を確認すること。前者はクリップボードサポートが存在することを
意味し、後者は Vim にクリップボードサポートが含まれていないことを意味する。

"* または "+ レジスタにアクセスしようとしていて、Vim がクリップボードをサポー
トしていない場合は、次の警告が表示される:

Warning: Clipboard register not available. See :h W24~

クリップボードをサポートしていない vim を持っているが、クリップボードを使用し
たい場合は、vim-enhanced や vim-gtk3 等のより拡張された Vim パッケージをインス
トールしてみてほしい (GUI パッケージには通常、クリップボードをサポートしている
ターミナル Vim も付属している)。

*x11-cut-buffer*
既定では 8 つのカットバッファがある。CUT_BUFFER0 から CUT_BUFFER7 まで。Vim
は CUTBUFFER0 のみを使う。これは xterm が標準的に使っているものである。
Expand Down
21 changes: 20 additions & 1 deletion en/gui_x11.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*gui_x11.txt* For Vim version 9.1. Last change: 2024 Nov 11
*gui_x11.txt* For Vim version 9.1. Last change: 2024 Nov 17


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -716,6 +716,25 @@ output a warning:

Warning: Clipboard register not available, using register 0 ~

*W24*
Vim comes in different flavors, from a tiny build, that just tries to be
compatible to original Vi, to enhanced builds which include many improvements
(like a GUI). However, on servers and embedded systems, Vim is typically
compiled without clipboard support, since this feature requires X11 libraries
to be present. Check the ":version" output for the flag |+clipboard| or
-clipboard. The former means clipboard support is present while the latter
means your Vim does not contain clipboard support.

In the case when you are trying to access the "* or "+ register and Vim has
no clipboard support, you will see this warning:

Warning: Clipboard register not available. See :h W24~

If you have a vim with no clipboard support but would like to use the
clipboard, try to install a more enhanced Vim package like vim-enhanced or
vim-gtk3 (the gui packages usually also come with a terminal Vim that has
clipboard support included).

*x11-cut-buffer*
There are, by default, 8 cut-buffers: CUT_BUFFER0 to CUT_BUFFER7. Vim only
uses CUT_BUFFER0, which is the one that xterm uses by default.
Expand Down