liuchengxu / vim-better-default

:art: Simplify your .vimrc and make the default vim better
MIT License
158 stars 37 forks source link

Add cursor shape handling for neovim. #12

Closed yzhuang closed 7 years ago

yzhuang commented 7 years ago

vim-better-defaults has cursor shape configurations for iterm and tmux, but these do not work in neovim.

Neovim's uses a different way to configure cursor shapes. This change adds cursor shape config for neovim.

liuchengxu commented 7 years ago

Thanks!

liuchengxu commented 7 years ago

Hi, @yzhuang . I have just tried this in neovim, but it seems that let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1 works in my case, not 2. I found some discussion here:

I am using iTerm2 Build 3.0.15.

UPDATE: It's my bad. Sorry for the noise. Sometimes I got a little dizzy between neovim and vim. I forgot to update the plugins in neovim :).

yzhuang commented 7 years ago

Both 1 and 2 work for me. Feel free to change it to 1.

Edit: Nevermind, just saw your update.