Skip to content
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

特定の条件下で keepState<Plug>(skkeleton-toggle) を組み合わせるとskkeletonを無効化できなくなる #45

Open
gamoutatsumi opened this issue Nov 6, 2021 · 2 comments

Comments

@gamoutatsumi
Copy link
Member

gamoutatsumi commented Nov 6, 2021

Vim/Neovim双方で再現を確認しました。

vimrc

if !has('nvim')
  set nocompatible
endif
set runtimepath^=~/Repositories/github.com/vim-skk/skkeleton
set runtimepath^=~/Repositories/github.com/vim-denops/denops.vim

imap <C-j> <Plug>(skkeleton-toggle)
" このcmapを除けば再現しない
cmap <C-j> <Plug>(skkeleton-enable)

autocmd User skkeleton-initialize-pre call skkeleton#config({"keepState": v:true})

再現手順

  1. 普通にインサートモードに入り、 <C-j> を押下してskkeletonを有効化する。
  2. そのまま <Esc> でノーマルモードに戻り、再びインサートモードに入る。(この時点で keepState によりskkeletonが再度有効化される)
  3. <C-j> で無効化しようと試みるが無効化できない( l での無効化は通常通り動作します)
@gamoutatsumi
Copy link
Member Author

なぜかこれが再現しなくなってる

@gamoutatsumi
Copy link
Member Author

別のPCだと今でも再現してる、やはり調査が必要そう

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant