Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insert mode focus lost/gain prints escape sequences #20

Open
zekzekus opened this issue Aug 30, 2013 · 3 comments
Open

insert mode focus lost/gain prints escape sequences #20

zekzekus opened this issue Aug 30, 2013 · 3 comments

Comments

@zekzekus
Copy link

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.

@bitboxer
Copy link

I see those characters as well. Can I prevent the output of those sequences? I refresh the screen with ctrl+l but it would be great if I won't have to do that.

@tumdum
Copy link

tumdum commented Oct 20, 2013

I fixed it in my config by adding this into my vimrc:

    inoremap <Esc>[0 <nop>

I don't know why is it behaving this way, nor do I know why it can be fixed this way :/

@bitboxer
Copy link

It does not fix this for me 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants