[IPython-dev] windows readline vi mode

Michael Graz mgraz at mnsgraz.plus.com
Tue Mar 14 16:37:07 EST 2006


Okay, thanks for the info.  Here are my current changes:
http://www.plan10.com/readline/readline-1.12a.zip 

This contains files that are a direct replacement for the standard UNC
python readline package from sourceforge.  After installing readline-1.12
unzip the above into the Python24\Lib\site-packages directory.  It will
overwrite files in the readline subdirectory.  The vi mode is activated by
editing the file %home%\.inputrc or %homedrive%%homepath%\.inputrc and
adding the line "set editing-mode vi".

Notes:
- The readline vi mode is compatible with the standard python.exe
interpreter, the debugger (pdb.py) and also IPython.
- It has been developed and tested with Python 2.4
- To verify that everything is installed and working try the following:
    => python
    Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on
win32
    Type "help", "copyright", "credits" or "license" for more information.
    readline installed (vi)
    >>> import readline
    >>> readline.mode()
    'vi from $HOME/.inputrc'
- The new module functions readline.vi() and readline.emacs() can be used to
toggle the mode.

There is also a test_vi subdirectory.  The file PyReadline_test.py contains
a suite of unit tests.

-Michael


-----Original Message-----
From: Jörgen Stenarson [mailto:jorgen.stenarson at bostream.nu] 
Sent: Tuesday, March 14, 2006 7:40 PM
To: Michael Graz; ipython-dev at scipy.net
Subject: Re: [IPython-dev] windows readline vi mode


Michael,
I'm interested to integrate it into pyreadline. Could you send me the 
download info so I can take a look?

I'm also working on a refactoring of the code base and it may be better 
to merge your work there instead of in trunk.

/Jörgen




More information about the IPython-dev mailing list