this post was submitted on 17 Jul 2024
81 points (97.6% liked)
Ask Experienced Devs
1447 readers
2 users here now
Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
One thing I haven't seen mentioned is that not moving between mouse and keyboard so much reduces the risk of getting an RSI. So even if it didn't make you faster it would still probably be worth it to find a keyboard based workflow.
I use Helix and would suggest you try it (at least to start off with) as it is easier to learn than vim and does not require plugins or a complex config. To answer your question I will go from the less to more advanced/complex:
xthendto select a line (pressing N times will select N lines) and delete it (delete will also copy to the clipboard)pto paste in a newgthendwhen on a function/class usage.gthenr.%to select the entire files contentssto searchvthengthenlto select the rest of the linespace+yto copy to the system clipboard.There is actually a helix community on programming.dev: helix@programming.dev