nakashiii2020 / neovim-setting

0 stars 0 forks source link

memo #36

Closed nakashiii2020 closed 2 years ago

nakashiii2020 commented 2 years ago

日本語切り替えを修正

if has('mac')
  inoremap <silent> <C-j> <cmd>call ImActivate()<CR>
  inoremap <silent> <C-e> <cmd>call ImDisable()<CR>
  inoremap <silent> <C-[> <ESC><cmd>call ImDisable()<CR>
  nnoremap <silent> <C-[> <cmd>call ImDisable()<CR>

  function! ImActivate()
      call system("im-select 'com.google.inputmethod.Japanese.base'")
  endfunction
  function! ImDisable()
      call system("im-select 'com.google.inputmethod.Japanese.Roman'")
  endfunction
endif