How_To_Automatically_Switch_Ime_In_Vim

Setup

if executable('im-select')
	autocmd InsertLeave * :call system('im-select com.apple.keylayout.ABC')
	autocmd CmdlineLeave * :call system('im-select com.apple.keylayout.ABC')
endif

Quotes