Skip to content
Improve Vim/Neovim experience with input methods.
Vim script
Branch: master
Clone or download
Latest commit 4b42572 Oct 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
autoload Fix README.md Oct 10, 2019
plugin Add g:im_select_enable_for_win32_gvim Oct 5, 2019
README.md Fix README.md Oct 10, 2019

README.md

vim-im-select

Improve Vim/Neovim experience with input methods.

Usage

This plugin works out of the box on Linux with iBus or Fcitx.

On macOS or Windows, im-select must be installed.

Options

g:im_select_get_im_cmd

This variable can be set to a list or a string of the command for getting the current IM key.

e.g.

let g:im_select_get_im_cmd = ['im-select']

g:ImSelectSetImCmd

This variable must be a Funcref who takes the key as argument and returns the whole command line.

e.g.

let g:ImSelectSetImCmd = {key -> ['im-select', key]}

g:ImSelectGetImCallback

This variable must be a Funcref, which is called after the get_im command is exited, returning the current IM key.

e.g.

function! GetImCallback(exit_code, stdout, stderr) abort
  return a:stdout
endfunction
let g:ImSelectGetImCallback = function('GetImCallback')

g:im_select_default

This variable can be set to your own default IM key.

g:im_select_command

This variable can be set to the im-select program path of your own (only useful on macOS and Windows).

g:im_select_enable_for_win32_gvim

The plugin is disabled on GVim for Windows, as GVim for Windows already support IM auto-switching. Set this variable to 1 if you want to enable anyway.

You can’t perform that action at this time.