neovim / pynvim

Python client and plugin host for Nvim
http://pynvim.readthedocs.io/en/latest/
Apache License 2.0
1.54k stars 120 forks source link

`input` not working in `Ex` mode #482

Open pierreganty opened 3 years ago

pierreganty commented 3 years ago

The following shows it is possible to enter Ex mode but it is not possible to get out of it.

>>> import neovim
>>> n = neovim.attach("child", argv=['/opt/homebrew/bin/nvim', "--clean", "--embed", "--headless"])
>>> n.api.get_mode()
{'mode': 'n', 'blocking': False}
>>> n.input("Q")
1
>>> n.api.get_mode()
{'mode': 'ce', 'blocking': False}
>>> n.input("vi")
2
>>> n.api.get_mode()
{'mode': 'ce', 'blocking': False}
>>> n.input(":vi")
3
>>> n.api.get_mode()
{'mode': 'ce', 'blocking': False}