sjl / vitality.vim

Make Vim play nicely with iTerm 2 and tmux.
http://github.com/sjl/vitality.vim
MIT License
320 stars 30 forks source link

Neovim/Nvim issue: Cursor shape is not changed when going into insert mode... (fix is easy) #31

Open nick-s-b opened 9 years ago

nick-s-b commented 9 years ago

Just a quick note for those who have switched to neovim and still use Vitality.vim. Cursor changes are supported directly by Neovim's term library and you don't need any hacks. To use it, just set an env variable in your zshrc/bash_profile: export NVIM_TUI_ENABLE_CURSOR_SHAPE=1

jamischarles commented 8 years ago

Thank you. This just saved me. I don't even use vitality and this helped me fix it using iterm. I'd suggest opening this against the Neovim repo if it's a neovim issue.

jamischarles commented 8 years ago

I was able to place this in my ~/.vimrc which solved it for me:

let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1

ustulation commented 7 years ago

let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1

I did this but nothing happened - cursor still doesn't change shape. Am on ubuntu 14.04 with default terminal if it helps. Thanks

justinmk commented 5 years ago

Use 'guicursor', not NVIM_TUI_ENABLE_CURSOR_SHAPE, since Nvim 0.2.

https://github.com/neovim/neovim/wiki/FAQ#how-to-change-cursor-shape-in-the-terminal