@@ -13,19 +13,18 @@ connecting to and scripting Nvim processes through its msgpack-rpc API.
1313Supports python 2.7, and 3.4 or later.
1414
1515``` sh
16- pip2 install neovim
17- pip3 install neovim
16+ pip2 install pynvim
17+ pip3 install pynvim
1818```
1919
2020If you only use one of python2 or python3, it is enough to install that
2121version. You can install the package without being root by adding the ` --user `
2222flag.
2323
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:
2625``` sh
27- pip2 install --upgrade neovim
28- pip3 install --upgrade neovim
26+ pip2 install --upgrade pynvim
27+ pip3 install --upgrade pynvim
2928```
3029
3130Alternatively, the master version could be installed by executing the following
@@ -80,7 +79,7 @@ to the one exposed by the [python-vim
8079bridge] ( http://vimdoc.sourceforge.net/htmldoc/if_pyth.html#python-vim ) ):
8180
8281``` python
83- >> > from neovim import attach
82+ >> > from pynvim import attach
8483# Create a python API session attached to unix domain socket created above:
8584>> > nvim = attach(' socket' , path = ' /tmp/nvim' )
8685# Now do some work.
@@ -98,7 +97,7 @@ You can embed neovim into your python application instead of binding to a
9897running neovim instance.
9998
10099``` python
101- >> > from neovim import attach
100+ >> > from pynvim import attach
102101>> > nvim = attach(' child' , argv = [" /bin/env" , " nvim" , " --embed" ])
103102```
104103
0 commit comments