hrsh7th / vim-vsnip

Snippet plugin for vim/nvim that supports LSP/VSCode's snippet format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

jkunlin opened this issue · comments

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.

I think the keys are mapped.
:verbose xmap j

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?

You should use nnoremap instead of noremap.

You should use nnoremap instead of noremap.

It works. Thank you!