Re: Execute command for current "block" of code

2006-11-25 Thread Benji Fisher
On Wed, Nov 22, 2006 at 11:32:46AM -0800, Gary Johnson wrote: > On 2006-11-22, "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote: > > > v where is a Normal-mode "object", will highlight the > > concerned object. Example: vip for the "inner paragraph". > > And if you're using the matchit.vim plugin wit

Re: Execute command for current "block" of code

2006-11-22 Thread Gary Johnson
On 2006-11-22, "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote: > v where is a Normal-mode "object", will highlight the > concerned object. Example: vip for the "inner paragraph". And if you're using the matchit.vim plugin with your tags specified in b:match_words, then a% will highlight the

Re: Execute command for current "block" of code

2006-11-22 Thread A.J.Mechelynck
Christian Ebert wrote: * Kevin Old on Wednesday, November 22, 2006 at 12:57:27 -0500: Actually, I didn't know that highlighting visually and hitting the : will give me the range. That's half the battle for me on this. I've tried putting that into a mapping like this: map vti :'<,'> !perltidy

Re: Execute command for current "block" of code

2006-11-22 Thread Christian Ebert
* Kevin Old on Wednesday, November 22, 2006 at 12:57:27 -0500: > Actually, I didn't know that highlighting visually and hitting the : > will give me the range. That's half the battle for me on this. > > I've tried putting that into a mapping like this: > > map vti :'<,'> !perltidy vmap vti :!pe

Re: Execute command for current "block" of code

2006-11-22 Thread Kevin Old
Hi Tony, Actually, I didn't know that highlighting visually and hitting the : will give me the range. That's half the battle for me on this. I've tried putting that into a mapping like this: map vti :'<,'> !perltidy but when I visually select a chunk of code then type "vti" I get and error sa

Re: Execute command for current "block" of code

2006-11-22 Thread A.J.Mechelynck
Kevin Old wrote: Hello everyone, I have been thinking about implementing this little feature to help clean up my code. Here's the scoop. I'm a Perl programmer and I use a templating module called HTML::Mason which allows perl code within certain "tags". Here's an example of the code: <% $tmp

Execute command for current "block" of code

2006-11-22 Thread Kevin Old
Hello everyone, I have been thinking about implementing this little feature to help clean up my code. Here's the scoop. I'm a Perl programmer and I use a templating module called HTML::Mason which allows perl code within certain "tags". Here's an example of the code: <% $tmpl->template_top()