0

In my init.lua, I've got some keys bound to some actions in insert mode.

e.g.:

vim.keymap.set('i', '<C-j>', '<Plug>(easymotion-bd-w)')

But when I press Ctrl-ew, instead of highlighting words to jump to, <Plug>(easymotion-bd-w) is actually written in the buffer.

If it matters, I'm using kickstart.nvim.

Here's a screenshot that illustrates the problem:

enter image description here

1 Answer 1

0

I would try:

vim.keymap.set('i', '<C-j>', '<Plug>(easymotion-bd-w)', { remap = true} )
1
  • Is the solution proposed working for you? How can we help you further? If it is working may be could you accept it using the v button next to the arrow voting buttons. It allow the question to rest :-) Jul 28, 2023 at 4:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.