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