On Dec 3, 11:06 am, "Hansen, Mike" <[EMAIL PROTECTED]> wrote:
> I'm cleaning up a Perl Template Toolkit template, and I was wondering
> how would you select some text on a line and delete anything else on
> that line that isn't selected.
>
> <input type="text" class="yadda_yadda" value="[% something_important &]" />
>
> If I visually selected [% something_important %], is there some VIM
> magic that I could delete everything else on the line?
>
> Mike

I'd personally just yank it, delete the whole line, and put it the
yanked text back:

y0Dp

or

ycc<esc>p

If you do this often, maybe make a vmap to do it for you with one
keystroke.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to