On Oct 19, 8:44 pm, Tony Mechelynck <[EMAIL PROTECTED]>
wrote:
> On 20/10/08 01:52, Kevin wrote:
>
> > I'd like to use Visual mode to highlight some text, and then use that
> > text with my built in python interpreter. Hopefully this is as
> > trivial as i think it should be?
>
> > OR
>
> > How would i script the built in python interpreter to operate line by
> > line over a Visual region?
>
> Well, you could for instance use
>
> if has('python')
> func PyVisualFunction()
> '<,'> python <<EOF
> # do something (read-only) on vim.current.range
> EOF
> endfunc
> call PyVisualFunction()
> endif
>
> See ":help if_pyth.txt"
>
Thanks so much. Vim documentation is fanatstic, just a bit hard to
know what to look for...
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---