Forget macros and multi-cursor. (Regex) substitutions from vim's command line replaced 98% of my editing needs and rendered a lot of my vim-fu useless.
(Just like searching with / replaced 98% of my navigation)
Editing something without having to actually place the cursor anywhere is a killer feature
Also neovim can show you your substitutions live, no need for a plugin anymore. It's the default.
Regex search and replace is definitely among my most used features and the preview in NeoVim is amazing
That said, I do find myself using recursive macros quite often. They're an easy way to make a set of random little changes which would be hard to put into a solid regex. Especially when filtering and formatting logs to produce a list of error messages on a condensed format for review. It doesn't happen as often, but I also find them incredible when doing more complex substitution across a project.
1) is there a reason both of the other responses to your comment are all full of Bro’s? It this an in-joke?
2) Regex is great, and vim is a good place to exercise the “try a regex” reflex. And on the regular old bash command line, it is great for making stuff like locate more precise.
Terminal editors are not WSIWYG applications. I don't think multi-cursor is the correct for a vim motion workflow but I'll admit my vim-fu is not as strong but I get by with the substitute command + grep good enough where I rarely feel the need for a GUI editor to use multi-cursor.
Since VS Code is already an inefficient way to move around a code base, I don't think we should take any lessons seriously outside of how useful the LSP protocol become for adoption.
I think multi-cursors can be seen as an extension of macros, just that instead of defining the macro and navigating to the relevant places you instead navigate first and then execute the commands interactively (in essence skipping the part where you have to record). As a side effect you also don't need to be that concerned about what to do after having made a mistake.
I've had some pretty nasty string-wrangling with the substitute command that could've been avoided by just using a macro and the other way around. I'd argue these things complement each other and there is no need to restrict yourself arbitrarily.
Having it and not using it is better than needing and not having.
I can recall countless times where multi-cursor would've been just the sweet-spot I needed.
P.S.: multi-cursor is not about moving around the code base and therefore not taking lessons about navigation has no impact in this matter.
Sis, substitutions started being useful being I even learned Regex and I have done an incredible amount of edits with the just the bare minimum of Regex knowledge
Word Bro! Regex is so simple to read and easy to get right... and its like if Immanuel Kant wrote find and replace, yeah, learn a new language to do a single function... yEAH! 98% Bro!
I'd marry Regex if I could (but if we got divorced it would be my exregex [which is almost a palindrome!] Bro!)
While I agree with you I feel your comment is moving the goalpost. The question was whether an new "disrupting" tech solution was going to be a flop or not. I think the question of whether the new thing is or should be legally constrained is yet another (interesting!) question.
Correct! My whole point was that whether that's a flip or a flop also depends on the legal environment and whether the law is actually enforced. Which is also applicable to AI and its massive copyright/copyleft violations at scale (whether or not that's legitimate or useful is yet another interesting question).
It won't even help you understand that the 20 second task you've been putting off for 6 months causing anxiety will only take 20 seconds (nor will we learn from this)
Or the fact that in the time it took me to read this thread I could have finished that task. Sometimes I really want to punch my brain in its stupid face lol.
Yes, I was a big fan of Bacurau and it works well as a fable but this one is very grounded historically and even with a basic knowledge of Brazilian history of this era I spent too much time wondering what was happening and why (even though I did understand everything, it's not cryptic either, just the rythm feels a bit off)
Excellent aesthetics though but I am less sensitive to that
yeah where i am that is definitely skirting the line haha. i am plenty happy that i can just go to the store and buy the spores and its a very nice gray area that no one is looking really looking at. Sadly we did have a proposal fail on the 2024 elections for legalizing a few forms of psychedelics, but also the interest is there which is nice.
The problem is you can very obviously tell that you have a placebo because nothing is happening. Some studies mitigate that issue by giving a microdose but then maybe only the microsose is necessary? It seems like a hard problem
I find that it makes sense as a warning not mythologize your roots. It could even be defended that looking for one's root is indistinguishable from mythologizing. It can be a powerful political tool but ultimately it belongs to those most skilled into making it say what they want.
It's a marker of low IQ populism to believe things are simple and that the elite/technocracy/whatever is trying to hide that truth from us while making sure to never research why that might be so that they can keep on playing the blame game.
No if you allow to exit the simplistic low/high IQ paradigm you set up, I just can't take seriously comments like this who have not even started to try to show that they have any grip on the subject at all. Heck you haven't even tried to assess the quantity/availability of Ireland's "own resource". Do you seriously want Ireland to relay on peat ? How long would that last ?
A friend of mine who had it at night and who is not a smoker realized that smoking a cigarette would calm her tinnitus and allow her to sleep. Anyone had a similar experience with cigarette and/or nicotin ?
(Just like searching with / replaced 98% of my navigation)
Editing something without having to actually place the cursor anywhere is a killer feature
Also neovim can show you your substitutions live, no need for a plugin anymore. It's the default.
reply