Skip to content

insert mode focus lost/gain prints escape sequences #20

Description

@zekzekus

plugin works almost excellent for me. while in normal and visual mode focus lost causes to save of the file with my autocmd statement in my vimrc file.

but when i make focus lost in insert mode and when focus gained again i see [O[I characers printed to the buffer and buffer not saved.

    vnoremap <silent> <f24> <esc>:silent doautocmd FocusLost %<cr>gv
    vnoremap <silent> <f25> <esc>:silent doautocmd FocusGained %<cr>gv

    inoremap <silent> <f24> <c-o>:silent doautocmd FocusLost %<cr>
    inoremap <silent> <f25> <c-o>:silent doautocmd FocusGained %<cr>

visual mode mapping works but insert mode does not. i tried to put for inoremap but no luck.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions