Standard python interpreter has a vi command mode?

前端 未结 4 1345
天命终不由人
天命终不由人 2020-12-23 10:12

I was working a bit in the python interpreter (python 2.4 on RHEL 5.3), and suddenly found myself in what seems to be a \'vi command mode\'. That is, I can edit previous com

4条回答
  •  庸人自扰
    2020-12-23 10:46

    Ctrl-Alt-J switches from Emacs mode to Vi mode in readline programs.

    Alternatively add "set editing-mode vi" to your ~/.inputrc

提交回复
热议问题