; Auto execute section is the region before any return/hotkey; For Terminal/VimGroupAddTerminal,ahk_classPuTTYGroupAddTerminal,ahk_classmintty ; cygwinGroupAddTerminalVim,ahk_groupTerminalGroupAddTerminalVim,ahk_classVim; Include IME.hak; http://www6.atwiki.jp/eamat/pages/17.html#Include%A_ScriptDir%IME.ahkReturn; ESC + IME#IfWInActive,ahk_groupTerminalVimEsc:: ; Just send Esc at converting.if(IME_GET(A)){if(IME_GetConverting(A)){Send,{Esc}}else{IME_SET()}}else{Send,{Esc}}Return^[:: ; Go to Normal mode (for vim) with IME off even at converting.if(IME_GET(A)){Send,{Esc}Sleep1 ; wait 1 ms (Need to stop converting)IME_SET()Send,{Esc}}else{Send,{Esc}}Return#IfWInActive