From 6016ac270f54fe8494ee7bedde109019edb709c5 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 27 Jun 2017 12:21:53 +0200 Subject: provider/clipboard.vim: allow configuration #6030 Closes #6029 --- runtime/doc/provider.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'runtime/doc') diff --git a/runtime/doc/provider.txt b/runtime/doc/provider.txt index 435646bd1c..113f4a478e 100644 --- a/runtime/doc/provider.txt +++ b/runtime/doc/provider.txt @@ -129,6 +129,25 @@ are found in your `$PATH`. - lemonade (for SSH) https://github.com/pocke/lemonade - doitclient (for SSH) http://www.chiark.greenend.org.uk/~sgtatham/doit/ +If you would like to configure the provider: > + let g:clipboard = { + \ 'name': 'myClipboard', + \ 'copy': { + \ '+': 'copyCommand', + \ '*': 'copyCommand', + \ }, + \ 'paste': { + \ '+': 'pasteCommand', + \ '*': 'pasteCommand', + \ }, + \ 'cache_enabled': 1, + \ } + +If the cache is enabled, then when a selection is copied and the copy command +is executed, neovim will cache this selection until the copy command process +dies. Then, when pasting, if the copy command process has not died, the cached +selection is returned instead of executing the paste command. + The presence of a suitable clipboard tool implicitly enables the '+' and '*' registers. -- cgit