Akshay S Dinesh @akshay@social.learnlearn.in

Doctor-Programmer, Community Health Practitioner, Emergency Medicine Trainer, Consultant Fullstack Engineer, Health-Tech Policy Observer, Medicolegal Consultant

Website

https://asd.learnlearn.in/about/

Blog

https://blog.learnlearn.in

  • Notes
  • Followers 1135
  • Following 1
  • Remote follow
Akshay S Dinesh's avatar
Akshay S Dinesh
@akshay@social.learnlearn.in

There's this functionality that I have done twenty times in vim but after searching stackoverflow every single time. And that is to edit the beginning of a bunch of lines. You've gotta switch to visual mode, select lines, then do some keys, all so difficult to remember.

I'm trying out helix today and it is the first thing I tried and it is so easy to remember.

Select all the lines you want (you can use x to select lines). Start substitution with s Enter regex (^ is what I want) Do what it is that you want? Change with c, insert with i. Esc

Done!

  • permalink
  • interact from your instance
  • 1 year, 6 months ago
Powered by microblog.pub 2.0.0+4e1bb330 and the ActivityPub protocol. Admin.