|
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 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -716,6 +716,25 @@ output a warning:
|
716 | 716 |
|
717 | 717 | Warning: Clipboard register not available, using register 0 ~
|
718 | 718 |
|
| 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 | + |
719 | 738 | *x11-cut-buffer*
|
720 | 739 | There are, by default, 8 cut-buffers: CUT_BUFFER0 to CUT_BUFFER7. Vim only
|
721 | 740 | uses CUT_BUFFER0, which is the one that xterm uses by default.
|
|
0 commit comments