aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/nvim_clipboard.txt
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/doc/nvim_clipboard.txt')
-rw-r--r--runtime/doc/nvim_clipboard.txt30
1 files changed, 16 insertions, 14 deletions
diff --git a/runtime/doc/nvim_clipboard.txt b/runtime/doc/nvim_clipboard.txt
index cf38dea3d6..cf63685499 100644
--- a/runtime/doc/nvim_clipboard.txt
+++ b/runtime/doc/nvim_clipboard.txt
@@ -6,25 +6,27 @@
Clipboard integration for Nvim *nvim-clipboard*
-Nvim has no connection to the system clipboard, instead it is accessible
-through the |nvim-provider| infrastructure which transparently uses shell
-commands for communicating with the clipboard.
+Nvim has no direct connection to the system clipboard. Instead, it is
+accessible through the |nvim-provider| infrastructure, which transparently
+uses shell commands for communicating with the clipboard.
-To use clipboard on Nvim, make sure you have one of the following programs
-installed and available on $PATH:
+Clipboard access is implicitly enabled if any of the following clipboard tools
+is found in your `$PATH`.
- xclip
-- xsel(newer alternative to xclip)
-- pbcopy/pbpaste(already available on Mac OS X)
+- xsel (newer alternative to xclip)
+- pbcopy/pbpaste (only for Mac OS X)
-Having any of these programs should enable the '+' and '*' registers. As an
-optional step, set the 'unnamedclip' option to transparently access clipboard
-using the unnamed register. If you use the same |vimrc| for both Vim and Nvim,
-make sure you only set the option when `has('nvim')` is true:
+The presence of a suitable clipboard tool implicitly enables the '+' and '*'
+registers.
+
+If you want to ALWAYS use the clipboard for ALL operations (as opposed
+to interacting with the '+' and/or '*' registers explicitly), set the
+following option:
>
- if has('nvim')
- set unnamedclip
- endif
+ set clipboard+=unnamedplus
<
+See 'clipboard' for details and more options.
+
==============================================================================
vim:tw=78:ts=8:noet:ft=help:norl: