aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/nvim_clipboard.txt
blob: cf38dea3d6a9276dc35ed83bfe0c98f6a881b266 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
*nvim_clipboard.txt*    For Nvim.					{Nvim}


		 NVIM REFERENCE MANUAL    by Thiago de Arruda


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.

To use clipboard on Nvim, make sure you have one of the following programs
installed and available on $PATH:

- xclip
- xsel(newer alternative to xclip)
- pbcopy/pbpaste(already available on 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:
>
    if has('nvim')
      set unnamedclip
    endif
<
==============================================================================
 vim:tw=78:ts=8:noet:ft=help:norl: