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

Some problem when creating custom plugin command #151

Open
ar1xwe opened this issue Dec 16, 2017 · 0 comments
Open

Some problem when creating custom plugin command #151

ar1xwe opened this issue Dec 16, 2017 · 0 comments

Comments

@ar1xwe
Copy link

ar1xwe commented Dec 16, 2017

I add a new map to
<Plug>(incsearch-stayword)
by
incsearch#go({'command': '/', 'pattern': getreg('k'), 'is_stay': 1})

noremap <Plug>(incsearch-stayword) incsearch#go({'command': '/', 'pattern': getreg('k'), 'is_stay': 1})

and the key mapping is...

map "kyiw<Plug>(incsearch-stayword)<CR>

but it only search the first one char of the string which is already yanked into the register 'k'
What's the problem?

This problem can be solve by change the map to

map "kyiw(incsearch-stay)k

but it's slow...really slow...

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