this post was submitted on 17 Jul 2024
81 points (97.6% liked)
Ask Experienced Devs
1064 readers
1 users here now
Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient
founded 1 year 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:
x
thend
to select a line (pressing N times will select N lines) and delete it (delete will also copy to the clipboard)p
to paste in a newg
thend
when on a function/class usage.g
thenr
.%
to select the entire files contentss
to searchv
theng
thenl
to select the rest of the linespace
+y
to copy to the system clipboard.There is actually a helix community on programming.dev: [email protected]