| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Library aims to emulate the current python-vim interface through Neovim msgpack-rpc API
pip install neovimStart Neovim with a known address or query the value of $NVIM_LISTEN_ADDRESS after startup:
$ NVIM_LISTEN_ADDRESS=/tmp/neovim nvimOpen the python REPL with another terminal connect to Neovim:
>>> import neovim
>>> vim = neovim.connect('/tmp/neovim')
>>> buffer = vim.buffers[0] # get the first buffer
>>> buffer[0] = 'replace first line'
>>> buffer[:] = ['replace whole buffer']
>>> vim.command('vsplit')
>>> vim.windows[1].width = 10
>>> vim.vars['global_var'] = [1, 2, 3]
>>> vim.eval('g:global_var')
[1, 2, 3]See the test subdirectory for more examples
This is still alpha and incomplete, use only for testing purposes
| Back | FazBrowse Home | New Git URL |