tmux-plugins / vim-tmux-focus-events

Make terminal vim and tmux work better together.
MIT License
348 stars 23 forks source link

Avoid InsertLeave event for insert mode mapping #21

Open ozars opened 5 years ago

ozars commented 5 years ago

I am using lessspace.vim plugin to remove white spaces when I switch to normal mode. Currently switching windows/panes while insert mode triggers InserrtLeave due to inoremap command prefix and it causes white spaces to be removed in insert mode. Prepending ctrl-c in insert mode instead of ctrl-\ + ctrl-o fixes this issue.