You can change the key bindings by modifying the/etc/inputrc file. It is recommended that you use the default key bindings to avoid unnecessary annoyance. Of course, Emacs-style key bindings are generic and can be used at any time.
Add the row to the file to set the ReadLine key binding to VI style. (The software that uses readline, such as Bash, Lftp, is also in effect)
Set Editing-mode VI
Find this line:
$if Mode=emacs
Add the following below it
"\c-o": Menu-complete
# # #这两行不是必须的, depending on the situation ###
"\c-p": non-increhttp://www.aliyun.com/zixun/aggregation/29845.html ">mental-reverse-search-history
"\c-n": non-incremental-forward-search-history
Re-log in to the shell, and you can use \c-o (ctrl) to traverse the completion. If your file name is Chinese, or if there is garbled, you can use \m-* to put all the file names into the command line, and then delete the redundant, this is a great trouble! So you can use the \c-o traversal completion to put all possible options in turn into the command line.
Or use the Vim editor to edit the/etc/inputrc file and use Ctrl + V in insert mode. Press CTRL, the edit area adds a ^o character, equivalent to \c-o