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

iTerm2 : Cmd + letft or right to changes tabs displays strange chars #19

Open jmgarnier opened 11 years ago

jmgarnier commented 11 years ago

When I come back to my tmux tab, it displays the following:

image

These strange chars dissapear when I refresh the file in vim (scrolling, open a new split, etc ...)

If if disable vitality, it works fine

jcf commented 10 years ago

I can verify the same thing happens for me using vim-tmux-navigator, and this tmux.conf.

keith commented 10 years ago

There's also a closed issue on their repo here: https://github.com/christoomey/vim-tmux-navigator/issues/7

keith commented 10 years ago

This issue, when cause by vim-tmux-navigator, can be fixed by using this function to navigate vim + tmux instead of that plugin. This function contains a redraw! that causes the control codes to be removed as soon as it's switched to the tmux pane.