LoginSignup
5
2

More than 3 years have passed since last update.

WSLのVimでインサートモードから抜けるときに自動で日本語入力をOFFにする(イベント駆動)

Last updated at Posted at 2020-03-23

AlacrittyでWSLを使っているけど、もう少し使い勝手をよくする(とくにVim)ための備忘録。

InsertLeave 駆動時に zenhan を外部実行

@notoya さんの記事 クリップボードの連携 を参考にVimの自動コマンドで定義してみた。
インサートモードから離れるとき(InsertLeave)にIMEを切り替えするプログラム zenhan.exe を外部実行する。これをvimrcに書く。

augroup Norml

  autocmd!

  autocmd InsertLeave * :call system('/mnt/c/apps/zenhan/bin64/zenhan.exe {im}')

augroup END

参考にした情報

大変参考になりました!ありがとうございます!😉

5
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
2