launching vi/vim from console

Shashwat Anand anand.shashwat at gmail.com
Mon May 24 10:59:48 EDT 2010


or in a reverse way you can open vim and use ':shell' followed by python. I
prefer it that way generally

On Mon, May 24, 2010 at 6:01 PM, adm <avinash.magar at gmail.com> wrote:

> On May 24, 4:59 pm, Jean-Michel Pichavant <jeanmic... at sequans.com>
> wrote:
> > adm wrote:
> > > I am newbie to python.
> > > Is there a way to launch vi/vim or any other editor from python
> > > console? I find editing in console very limiting. I can either have a
> > > console which launches vi and remembers it's content and then executes
> > > or invoke python interpreter from vim.
> >
> > > Since I could not find anything I wrote this:
> http://python.pastebin.com/MFTHxuLe
> > > Please suggest if there is any better alternative for this.
> > > I tried googling for this but could not find anything interesting.
> >
> > > Thanks,
> > > Adm
> >
> > import os
> > os.system.('vi')
> >
> > or you can start an ipython shell
> >  and start vi using
> > !vi
>
> Thanks. I wanted something like ipython.
> I will give it a try.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100524/09dad2c2/attachment-0001.html>


More information about the Python-list mailing list