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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -