jeffreytse / zsh-vi-mode

💻 A better and friendly vi(vim) mode plugin for ZSH.
MIT License
3.13k stars 109 forks source link

Fix for tmux cursor shape #163

Closed AnsonYeung closed 2 years ago

AnsonYeung commented 2 years ago

As mentioned in https://github.com/tmux/tmux/issues/2059#issuecomment-574839532 , no tmux wrapper is needed to support cursor shape changing. Without this fix, the cursor will change back to block style after using nvim and after a status bar update. With this fix, after exitting from nvim the cursor shape will be fine with the default settings.

AnsonYeung commented 2 years ago

This should fix #20 in theory. Also fixes #11 as now tmux is able to remember the cursor state in each tmux pane. (I can confirm it is fixed in my tmux)