News for hackers. Stuff that matters.
Re:Why, oh why, do those nutheads use vi? by Symmetry on Thursday February 02, 2012 @10:13AM (#3542957)
There's no good way to do it, unfortunatly. You need to yank the contents of the line without yanking the entire line qua line. Now, if 'l' were a text object for 'line' then there would be an obvious 'yil' for just getting the inner stuff, but since there isn't you'll have to do 0y$ to go to the start of the line and yank until the end of the line. That'll store the line contents instead of the line itself, so p will do what you want it to.
Re:Why, oh why, do those nutheads use vi? by z92 on Thursday February 02, 2012 @11:57AM (#3543468)
So it's

1. 0y$p

and

2. o<ESC>p

Re:Why, oh why, do those nutheads use vi? by becasse on Saturday February 04, 2012 @05:23PM (#3552396)
I have exactly this mapping defined in my .vimrc ...

  " 'Inside-line' operator-pending-mode mapping
  onoremap <silent> il :<C-U>normal! ^v$h<CR>
  onoremap <silent> iL :<C-U>normal! 0v$h<CR>