neovim / pynvim

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

How to clear output (vim.out_write) #446

Closed pianocomposer321 closed 4 years ago

pianocomposer321 commented 4 years ago

After getting input from neovim with self.vim.eval('input("Enter a value: ")'), if I echo the output with either self.vim.out_write or self.vim.command("echo"), it doesn't clear "Enter a value: " before echo-ing.

Example: image

Shougo commented 4 years ago

self.vim.command("redraw | echo") fixes your issue.

pianocomposer321 commented 4 years ago

Thanks @Shougo! Closing the issue now.