On May 10, 9:59 am, Charles Sanders <[EMAIL PROTECTED]>
wrote:
> Ant wrote:
>
> > What method of executing code snippets in a Python shell do other Vim
> > users use? Other than just copy/paste?
>
> Not vim, but good old vi so should work in vim
>
> 1. Mark the start of the fragment, for exampls ms (to mark
> with label s). Labels a through z are available.
> 2. Move to the end of the fragment.
> 3. :'s,.w !python     to send the fragment to the python
> interpreter

Yes - that works nicely for code snippets in isolation. My quest for
tighter integration of the Python console/IPython and vim will have to
continue...

--
Ant...

http://antroy.blogspot.com/


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to