Giter Club home page Giter Club logo

Comments (5)

unphased avatar unphased commented on June 16, 2024

Hi, I'd like to have this because this is how ST implements Ctrl/Cmd+D and I've gotten used to it because it is good for renaming variable names. Quite often a variable name can come up as a substring of a different variable.

The fix is obviously to insert \< and \> in the regex (which i believe is actually what * does). I am not sure if this uses the value found with :set iskeyword? but that really should be how it gets matched.

I'll look into this but maybe you could help show me where in the code I can make this modification?

from vim-multiple-cursors.

gustavo-hms avatar gustavo-hms commented on June 16, 2024

I vote for this behaviour! If not by default, at least as a configuration option.

I think this is a better solution for the following reasons:

  • this is the behaviour I need most of the time;
  • if the word I'm searching for happens to be a very common substring of words in my buffer, I will have a big work skipping all the matches with ;
  • if I need a match by text, I can always select the desired text in visual mode and make the plugin search for it;
  • having this option, I can cover both usecases (as can be seen by the former reasons); do not having it, only one usecase is well covered (I mean, without having to potentially skip lots of matches).

from vim-multiple-cursors.

balta2ar avatar balta2ar commented on June 16, 2024

Related #104 . Implemented in #105.

from vim-multiple-cursors.

balta2ar avatar balta2ar commented on June 16, 2024

@faceleg I guess this can be closed?

from vim-multiple-cursors.

faceleg avatar faceleg commented on June 16, 2024

@balta2ar thanks 💃

from vim-multiple-cursors.

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.