vi - Vim: copy/delete line from the first none blank character to the last none blank character -
most time when copy or delete code in vim use yy
or dd
, got indent spaces. there quick command can yank line without leading or trailing spaces?
i'm not wizard, but:
^v$gey
works me. can make alias.
edit: here's better 1 doesn't rely on visual mode.
^yg_
Comments
Post a Comment