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

Cursor fix not working with tmux in iTerm 2 in Vim #18

Closed dougireton closed 11 years ago

dougireton commented 11 years ago

Steps to repro:

  1. Open iTerm 2
  2. run tmux
  3. run vim
  4. Enter vim's Insert mode.

    Expect:

Bar cursor

Actual:

Block cursor

I am running everything locally on my Mac. I'm not ssh'd into any servers.

Running iTerm 2 Build 1.0.0.20130624 with Tmux 1.8 and vim 7.3:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled May 20 2013 10:10:22) MacOS X (unix) version Included patches: 1-976

:echo g:vitality_fix_cursor == 1

dougireton commented 11 years ago

I fixed this issue by removing this from my .vimrc. It was conflicting with Vitality.

-  " Set cursor shape to bar in insert mode and block in normal mode
-  let &t_SI = "\<Esc>]50;CursorShape=1\x7"
-  let &t_EI = "\<Esc>]50;CursorShape=0\x7"