Vim "inner line" text object works on the text inside the line. Leading and trailing whitespace is ignored.
_ (underscore) - "inner line"
-
v_visually selects all the text in a line, except the leading and trailing whitespace. -
y_yank "inner line". -
d_delete the whole line, but only "inner line" gets into the register.
It's shorter to type than ^vg_ + operator.
-
Vundle
Plugin 'bruno-/vim-line' -
Pathogen
git clone git://github.com/bruno-/vim-line.git ~/.vim/bundle/vim-line