easymotion / vim-easymotion

Vim motions on speed!
http://www.vim.org/scripts/script.php?script_id=3526
7.44k stars 358 forks source link

How to work in insert mode? #329

Closed zgqq closed 7 years ago

zgqq commented 7 years ago
map <C-j> <Plug>(easymotion-j)
map <C-k> <Plug>(easymotion-k)

It seems to work in normal mode.

zgqq commented 7 years ago

I think it should work in insert mode.Simply because you don't need to know what mode you are in. A another reason is that if you want to move cursor to other place you must exit insert mode,so increasing several keystroke.

haya14busa commented 7 years ago

Please use normal mode, visual mode or operator-pending mode. I have no plan to support insert mode.

All builtin motions in Vim doesn't work in insert mode too.

ghost commented 7 years ago

Use <c-o while in insert mode. This allows you to use one key from normal mode. e.g. <c-o>I

ywpkwon commented 4 years ago

I just tried mapping imap <C-b> <ESC><Plug>(easymotion-overwin-w) expecting quitting from insert mode and run the function. It works when a buffer has been changed, but when a buffer has been changed in the insert mode, it shows an error message. Is this invalid operation?