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

Targets remain highlighted after jump in streak mode -- bug? #98

Closed
mon10a opened this issue Apr 1, 2014 · 14 comments
Closed

Targets remain highlighted after jump in streak mode -- bug? #98

mon10a opened this issue Apr 1, 2014 · 14 comments
Labels

Comments

@mon10a
Copy link

mon10a commented Apr 1, 2014

I just updated and see that target highlighting now remains ON after jumping to a match in streak mode. I think the previous behavior which turned the highlighting off immediately after you jump (but turns it back on if you press ';' or ',') is preferable.

Thanks.

@justinmk
Copy link
Owner

justinmk commented Apr 3, 2014

@mon10a Should be fixed now.

@bebound
Copy link

bebound commented Jun 26, 2015

Hello,
I also face this problem now.
I'm using OS X 10.10.3, iTerm2 and Vim7.4.712
The highlight won't clear after jump, works OK on MacVim. Thank you.
screen shot 2015-06-26 at 20 05 30

@justinmk
Copy link
Owner

@bebound What are the exact steps to reproduce?

@bebound
Copy link

bebound commented Jun 27, 2015

I use a minimal vimrc, which only include vim-sneak: https://gist.github.com/bebound/e1c97f00a2a9e6d7fe49
It works like this: asciicast
1 Search for some word.
2 Jump to somewhere
3 The highlighted character remain highlighted

@justinmk
Copy link
Owner

@bebound Are you certain the Vim you're running in iTerm2 is Vim7.4.712 (check :version)? What version is MacVim?

@bebound
Copy link

bebound commented Jun 29, 2015

Yes, both of them are 7.4.712. I install them by home brew and home brew cask.


通过 Mailbox 发送

On Mon, Jun 29, 2015 at 5:26 AM, Justin M. Keyes [email protected]
wrote:

@bebound Are you certain the Vim you're running in iTerm2 is Vim7.4.712 (check :version)? What version is MacVim?

Reply to this email directly or view it on GitHub:
#98 (comment)

@justinmk
Copy link
Owner

If you're using the exact same Vim in terminal and gui, yet one works and the other doesn't, I don't know how to help you. I can only mention that installing MacVim via homebrew does not overwrite the default OS X Vim unless you explicitly tell it to. So, please verify that the Vim you're running in terminal really is what you think it is.

@bebound
Copy link

bebound commented Jun 29, 2015

Do you using OS X? Maybe this is compatibility problem on OS X. It's OK on 7.4.273 on Ubuntu.

I record one more screenshot, it shows that:
1 If search result has 2 match (the first character doesn't change), the highlight will be remove after jump.
2 If search result has more than 2 match( the first character changes), the highlight will remain.
2.1 Search another 2 match won't clear the previous wrong highlight.
2.2 Search another 3 match will clear the previous wrong highlight.

asciicast

@justinmk
Copy link
Owner

I use OS X (Terminal.app) every day, this problem doesn't exist in Vim nor Neovim. My guess is it's a bug in a recent patch of Vim. Try upgrading to 7.4.77x or perhaps report it to Vim.

@bebound
Copy link

bebound commented Sep 2, 2015

Solved by adding "syntax on" in my vimrc....

@justinmk
Copy link
Owner

justinmk commented Sep 2, 2015

@bebound Thanks for the tip. Does that mean you (previously) did not run with syntax on?

@bebound
Copy link

bebound commented Sep 2, 2015

Yes.
I usually use MacVim, and it looks normally without syntax on...

Here is the vimrc https://github.com/bebound/Dotfiles/blob/master/.vimrc

@justinmk
Copy link
Owner

justinmk commented Sep 2, 2015

Ok, I may be able to fix that.

@gyermolenko
Copy link

I have same problem, "Targets remain highlighted after jump in streak mode".
My OS is ubuntu based (15.04).
vim version is 7.4.488
I've tried both in vim and gvim.
Syntax was on from the beginning. Turning off and on again didn't help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants