Coder Social home page Coder Social logo

Comments (1)

hlissner avatar hlissner commented on June 15, 2024 7

Sorry for the late reply! I'd like to make clear that this is personal preference, so your mileage may vary, but put simply, evil-multiedit is better for quick edits on homogenious regions of text and evil-mc is better for complex edits on heterogenious text.

Now, I am absolutely certain evil-mc can fill either role, with some effort, but its premise is to mirror commands across many cursors, even motions. Extra steps are needed to get cursors into their desired starting positions and extra care taken to ensure cursors end up exactly where you want them to be after each and every operation. On top of that, undo/redo is buggy in evil-mc, adding cognitive load to the mere act of backtracking in case of a mistake. In a sentence, evil-mc is complex and powerful. Complexity you need only rarely, but when you do, and plan for it, evil-mc is indispensible.

With evil-multiedit, instead of mirroring commands across cursors, you're mirroring text across highlighted regions. Think of it as interactive substitution with the power of modal editing. Once you've placed your regions, no additional mental bookkeeping is necessary, as it was when managing several autonomous cursors. You're managing only one cursor and editing one region (which one is up to you), and the propagated edits are restricted to those regions. This reassures me that my edits don't find themselves where I don't want them to. However, evil-multiedit is useless when the highlighted regions are heterogenious.

These two, combined with vim/evil substitution and visual-block editing make for a very complete editing package altogether.

I hope that has answered your question! I'm closing this issue simply because it isn't a bug, but feel free to continue using it. I'll eventually work this explanation into the project's readme.

Also, if it helps, you can find my keybinding scheme for the two plugins described at the bottom of this project's readme.

from evil-multiedit.

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.