How do I use vi keys in ipython under *nix?

前端 未结 6 1333
闹比i
闹比i 2020-12-04 07:48

Currently in Bash I use set -o vi to enable vi mode in my bash prompt.

How do I get this going in ipython?

Note: If an answer applies t

6条回答
  •  天涯浪人
    2020-12-04 08:00

    ipython uses the readline library and this is configurable using the ~/.inputrc file. You can add

    set editing-mode vi
    

    to that file to make all readline based applications use vi style keybindings instead of Emacs.

提交回复
热议问题