Deleting all but selected on a line

2008-12-03 Thread Hansen, Mike

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

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



RE: Deleting all but selected on a line

2008-12-03 Thread Hansen, Mike

 

 -Original Message-
 From: vim_use@googlegroups.com 
 [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
-~--~~~~--~~--~--~---



RE: Deleting all but selected on a line

2008-12-03 Thread Hansen, Mike

 

 -Original Message-
 From: vim_use@googlegroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Marc Weber
 Sent: Wednesday, December 03, 2008 10:49 AM
 To: vim_use@googlegroups.com
 Subject: Re: Deleting all but selected on a line
 
 
  I'll answer my own question. I solved it by recording a 
 macro, but I'm interested in other solutions.
 I usually do
 y0PlD
 
 Marc
 

Thanks. That does the trick.

Mike

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



RE: Intesting blog posts of 10 year vim user switching to emacs

2008-11-19 Thread Hansen, Mike


 Any kind of LISP is cool? Not for me. Refrigerating maybe. If 
 you want 
 Polish notation, give me FORTH. But in most cases a 
 structured language 
 like Vimscript is just what I need.

(LISP(Lost (In) (Stupid) (Parentheses)) =)

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



RE: Vim as a Outlook editor

2008-11-07 Thread Hansen, Mike

 

 -Original Message-
 From: vim_use@googlegroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
 Sent: Friday, November 07, 2008 1:59 PM
 To: vim_use@googlegroups.com
 Subject: Vim as a Outlook editor
 
 Can it be done?  Can anyone point me to a how-to?  
  
 Larry Sherman 
 
 

This is what I use. I just created a button to run the macro. That way I can 
edit a message in VIM if I want.

http://barnson.org/node/295#comment-26755

Mike

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



RE: IntelliSense with Vim

2008-10-22 Thread Hansen, Mike

 Dear all,
 
 (me again)
 
 Is there a supreme plug-in and/or a howto for Vim, that allows/
 explains IntelliSense
 (based on {e|c}-tags for that matter)? I've tried different approaches
 but none
 of them worked out of the box and complete...
 
 BTW Did ask Google ;-)
 
 Thank you very much for pointing me in the right direction.
 
 Greetings from Switzerland,
 Peter
 
Try :help new-omni-completion

Intellisense(tm) is probably copyrighted by Microsoft, so it had to be
called something different.

Mike

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