@@ -13,19 +13,18 @@ connecting to and scripting Nvim processes through its msgpack-rpc API.
13
13
Supports python 2.7, and 3.4 or later.
14
14
15
15
``` sh
16
- pip2 install neovim
17
- pip3 install neovim
16
+ pip2 install pynvim
17
+ pip3 install pynvim
18
18
```
19
19
20
20
If you only use one of python2 or python3, it is enough to install that
21
21
version. You can install the package without being root by adding the ` --user `
22
22
flag.
23
23
24
- If you follow Neovim master, make sure to upgrade the python-client when you
25
- upgrade neovim:
24
+ Anytime you upgrade Neovim, make sure to upgrade pynvim as well:
26
25
``` sh
27
- pip2 install --upgrade neovim
28
- pip3 install --upgrade neovim
26
+ pip2 install --upgrade pynvim
27
+ pip3 install --upgrade pynvim
29
28
```
30
29
31
30
Alternatively, the master version could be installed by executing the following
@@ -80,7 +79,7 @@ to the one exposed by the [python-vim
80
79
bridge] ( http://vimdoc.sourceforge.net/htmldoc/if_pyth.html#python-vim ) ):
81
80
82
81
``` python
83
- >> > from neovim import attach
82
+ >> > from pynvim import attach
84
83
# Create a python API session attached to unix domain socket created above:
85
84
>> > nvim = attach(' socket' , path = ' /tmp/nvim' )
86
85
# Now do some work.
@@ -98,7 +97,7 @@ You can embed neovim into your python application instead of binding to a
98
97
running neovim instance.
99
98
100
99
``` python
101
- >> > from neovim import attach
100
+ >> > from pynvim import attach
102
101
>> > nvim = attach(' child' , argv = [" /bin/env" , " nvim" , " --embed" ])
103
102
```
104
103
0 commit comments