> -----Original Message-----
> From: [email protected] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Hansen, Mike
> Sent: Wednesday, December 03, 2008 10:06 AM
> To: [EMAIL PROTECTED]
> Subject: Deleting all but selected on a line
> 
> 
> 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'll answer my own question. I solved it by recording a macro, but I'm 
interested in other solutions.

Mike

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to