Git Product home page Git Product logo

Comments (3)

justinmk avatar justinmk commented on June 1, 2024 1

I've gotten used to the vim-cool -train of thought that all Search highlights clear on the first cursormove so it'd be nice if I could reduce the CursorMoved to just the first.

Not sure what you mean. The "first" move is done internally by sneak, which is why the nested handler is used (although maybe that could be simplified, possibly by moving the s:attach_autocmds() call later. (edit: doesn't work)

But in any case, as a user you should only have to move the cursor once. Maybe some other plugin is interfering.

from vim-sneak.

justinmk avatar justinmk commented on June 1, 2024

If you're referring to the non-label-mode behavior where hitting ; doesn't clear the highlights... you can call sneak#cancel() from a <Plug>Sneak_; mapping.

That also raises the question, why have highlights at all for non-label-mode? To disable highlights see :help sneak-highlight:

To disable highlighting:  
    highlight link Sneak None
    " Needed if a plugin sets the colorscheme dynamically:
    autocmd User SneakLeave highlight clear Sneak

from vim-sneak.

tuurep avatar tuurep commented on June 1, 2024

But in any case, as a user you should only have to move the cursor once. Maybe some other plugin is interfering.

Hey thanks a lot, after reading this I tried with a minimal config and indeed I was wrong in my post.

The setting that caused this bug was:

let g:loaded_matchparen = 0

which I have had in my configs forever. What a weird interference, does that give you any idea of a bug?

As a workaround I can load matchparen and set MatchParen highlight group to None

from vim-sneak.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.