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.
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.