Most time when I copy or delete some code in Vim use yy
or dd
, I also got the indent spaces. Is there a quick command that I can yank a line without leading or trailing spaces?
I'm not a wizard, but:
^v$gey
works for me. You can always make an alias.
EDIT: here's a better one that doesn't rely on visual mode.
^yg_
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With