Re: readline + python + vi-editing-mode

2012-10-18 Thread Laurence Gonsalves
On Thu, Oct 18, 2012 at 3:08 PM, Ned Deily wrote: > In article <[hidden email]>, > laurence <[hidden email]> wrote: > >> I'm trying to enable vi editing mode in readline in Python. ... > Did you install the py27-readline port? If not, modern Pythons on OS X > will link with the Apple-supplied BS

Re: readline + python + vi-editing-mode

2012-10-18 Thread Ned Deily
In article <1350591062071-197263.p...@n4.nabble.com>, laurence wrote: > I'm trying to enable vi editing mode in readline in Python. Here's what I'm > doing in an interactive Python session: > > >>> import readline > >>> import rlcompleter > >>> readline.parse_and_bind ("bind ^I rl_complete") >

readline + python + vi-editing-mode

2012-10-18 Thread laurence
it looks like I'm using the MacPorts version: >>> rlcompleter.__file__ '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/rlcompleter.pyc' >>> readline.__file__ '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.