aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-11-10 12:17:47 -0500
committerJustin M. Keyes <justinkz@gmail.com>2014-11-10 12:17:47 -0500
commitb0cd397a43ae18942e12b1c76f838aac135b18cf (patch)
treedd7ba7b114cd2f2649a3bb8a689abff78fd6a084
parent20b895e624489903fc79f956234039eaaecb6e46 (diff)
parentb384252d52aadfe0699d636125a103f4bad5ad17 (diff)
downloadrneovim-b0cd397a43ae18942e12b1c76f838aac135b18cf.tar.gz
rneovim-b0cd397a43ae18942e12b1c76f838aac135b18cf.tar.bz2
rneovim-b0cd397a43ae18942e12b1c76f838aac135b18cf.zip
Merge pull request #1416 from jondkinney/master
Fix the nvim-clipboard help instructions
-rw-r--r--runtime/doc/nvim_clipboard.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/doc/nvim_clipboard.txt b/runtime/doc/nvim_clipboard.txt
index 3dd5fb5fcb..74c9254c70 100644
--- a/runtime/doc/nvim_clipboard.txt
+++ b/runtime/doc/nvim_clipboard.txt
@@ -12,24 +12,24 @@ will be implemented by UI programs, which connect to Nvim via |msgpack-rpc|.
Even though externalized UIs are not available yet, there's a workaround that
enables clipboard usage through the python interface(which also uses
|msgpack-rpc| and consequently can implement the clipboard methods required
-by Nvim):
+by Nvim):
- Make sure you follow the setup instructions in |nvim-python-quickstart|.
- Install the `xerox` python module:
>
$ pip install xerox
<
-- Create a ~/.vim/pythonx/nvim_clipboard.py file with the following contents:
+- Create a ~/.nvim/pythonx/nvim_clipboard.py file with the following contents:
>
import xerox
-
+
class NvimClipboard(object):
def __init__(self, vim):
self.provides = ['clipboard']
-
+
def clipboard_get(self):
return xerox.paste().split('\n')
-
+
def clipboard_set(self, lines):
xerox.copy(u'\n'.join([line.decode('utf-8') for line in lines]))
<