I'd like to lose focus when I'm in insert mode, to trigger auto-save on *.coffee buffers and also I need it to change mode from insert to normal mode to trigger Live compile feature of vim-coffee-script plguin.
What I achieved now:
autocmd BufWritePost,FocusLost *.coffee :wa
But how to bring it to normal mode?
Thanks in advance.