hrsh7th / vim-vsnip

Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.
MIT License
876 stars 37 forks source link

Can't use 'j' or 'k' when in placeholder #243

Closed jkunlin closed 2 years ago

jkunlin commented 2 years ago

The neovim will be in the select-mode when I am in the placeholder. In this case, 'j' or 'k' can not be used as typing.

Shougo commented 2 years ago

I think the keys are mapped. :verbose xmap j

jkunlin commented 2 years ago

I think the keys are mapped. :verbose xmap j

You are correct. Thanks a lot. I have a keymap like this: noremap j (v:count == 0 ? 'gj' : 'j')

Is there any way to make it compatible with this plugin?

Shougo commented 2 years ago

You should use nnoremap instead of noremap.

jkunlin commented 2 years ago

You should use nnoremap instead of noremap.

It works. Thank you!