New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XIM/IME が使えない場合でも iminsert=2 は設定できるべき。 #1118

Closed
mattn opened this Issue Nov 16, 2017 · 6 comments

Comments

Projects
None yet
3 participants
@mattn
Member

mattn commented Nov 16, 2017

現状は XIM/IME が使えない CUI バージョンは iminsert=2 が設定できません。
しかし imactivatefunc や imstatusfunc が入った今では、外部プログラムを使う事であたかも XIM/IME があったかも?という動作にする事が出来ます。
なので XIM/IME が無い場合でも iminsert=2 は設定できるべきと考えました。

@mattn

This comment has been minimized.

Show comment
Hide comment
@mattn

mattn Nov 16, 2017

Member

https://gist.github.com/35526ec896b3baa9b11e4f78fa2755fb

scriptencoding utf-8

let s:active = 0

function! IM_activatefunc(active)
  if a:active
    set statusline=IMEおん~
  else
    set statusline=IMEおふ~
  endif
  let s:active = a:active
endfunction

function! IM_statusfunc()
  return s:active
endfunction

set imactivatefunc=IM_activatefunc
set imstatusfunc=IM_statusfunc
set iminsert=2
set laststatus=2
$ vim -u imf.vim

こんな感じで CUI であっても疑似 IME を作る事が出来ます。

Member

mattn commented Nov 16, 2017

https://gist.github.com/35526ec896b3baa9b11e4f78fa2755fb

scriptencoding utf-8

let s:active = 0

function! IM_activatefunc(active)
  if a:active
    set statusline=IMEおん~
  else
    set statusline=IMEおふ~
  endif
  let s:active = a:active
endfunction

function! IM_statusfunc()
  return s:active
endfunction

set imactivatefunc=IM_activatefunc
set imstatusfunc=IM_statusfunc
set iminsert=2
set laststatus=2
$ vim -u imf.vim

こんな感じで CUI であっても疑似 IME を作る事が出来ます。

@tyru

This comment has been minimized.

Show comment
Hide comment
@tyru

tyru Nov 16, 2017

Member

あれ、すでにパッチ送ったんですか? >status/patched

Member

tyru commented Nov 16, 2017

あれ、すでにパッチ送ったんですか? >status/patched

@k-takata

This comment has been minimized.

Show comment
Hide comment
@k-takata

k-takata Nov 16, 2017

Member

送った場合は、status/sent patchです。

Member

k-takata commented Nov 16, 2017

送った場合は、status/sent patchです。

@mattn

This comment has been minimized.

Show comment
Hide comment
@mattn

mattn Nov 16, 2017

Member

Bram は試さない(試せない?)オプションなので、しばらくランニングさせて下さい。

Member

mattn commented Nov 16, 2017

Bram は試さない(試せない?)オプションなので、しばらくランニングさせて下さい。

@mattn

This comment has been minimized.

Show comment
Hide comment
@mattn

mattn Nov 19, 2017

Member

出しました。 vim/vim#2349

Member

mattn commented Nov 19, 2017

出しました。 vim/vim#2349

@mattn

This comment has been minimized.

Show comment
Hide comment
@mattn
Member

mattn commented Nov 25, 2017

@mattn mattn closed this Nov 25, 2017

@mattn mattn added the xlose/fixed label Nov 25, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment