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

cgn goes to next selection if selection=exclusive #38

Open
rationalthinker1 opened this issue May 15, 2020 · 1 comment
Open

cgn goes to next selection if selection=exclusive #38

rationalthinker1 opened this issue May 15, 2020 · 1 comment

Comments

@rationalthinker1
Copy link

In my vimrc, I have selection=exclusive. and whenever I want to replace a text, I would highlight it, press z*, press cgn, the n part goes to the next selection. You can replicate it if you add set selection=exclusive to your vimrc.

@rationalthinker1
Copy link
Author

I fixed it with this

map z*  <Plug>(incsearch-nohl)<Plug>(asterisk-z*)b
map gz* <Plug>(incsearch-nohl)<Plug>(asterisk-gz*)b
map z#  <Plug>(incsearch-nohl)<Plug>(asterisk-z#)b
map gz# <Plug>(incsearch-nohl)<Plug>(asterisk-gz#)b

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