On 1 February 2016 at 12:50, <hugues.r...@gmail.com> wrote: >> Idea: modify `st` so it can change `cursorahape` dynamically, modify >> `vis` to change the cursor on mode change. > Maybe I'm crazy, but doesn't st already do this? Neovim is able to change the > cursor when running in it.
You're right, there is code for it in st (in csihandle). (I don't use nvim and I haven't set up vim to emit the right code, so I don't have that behaviour.) I guess it's just a matter of hooking the right CSI at the right time.