Movatterモバイル変換


[0]ホーム

URL:


vim mode in interactive python

Donn Cavedonn at oz.net
Fri Apr 20 00:52:26 EDT 2001


Quoth Timothy Grant <tjg at hyperlinq.net>:| For some reason, I had never thought about the possibility of| making interactive python use vim key bindings, but as I was| reading the docs for the new release I read about setting vim| keybindings by putting the following line in .inputrc|| set editing-mode vi|| I have done so, but I don't get vim bindings. What might I be| doing wrong?You might be trying to use a python install that lacks a readlinemodule.  Try "import readline" - if that works, I'm wrong.I bet that's it, though.  I'm starting to think about a Python 2.1binary release, for my favorite platform, and while I have builtreadline I'm unlikely to include it in the release.  Previousbinary releases were built by someone else, and I believe hefound that including readline earned him a big hassle from oneor more GNU zealots.  The module is nice but not necessary inmy opinion, and I don't need the trouble.Donn Cave,donn at oz.net


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp