本文介绍了如何使用vi编辑器在KornShell命令行中自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 AIX UNIX版本5.3 的KornShell(ksh)中,使用以下方式将编辑器模式设置为vi:
In the KornShell (ksh) on AIX UNIX Version 5.3 with the editor mode set to vi using:
set -o vi在shell命令行中自动完成文件或目录名称的按键是什么?
What are the key-strokes at the shell command line to autocomplete a file or directory name?
推荐答案ESC \至少在AIX4.2上可以正常工作.我注意到的一件事是,它只会自动完成文件名的唯一部分.
ESC\ works fine on AIX4.2 at least. One thing I noticed is that it only autocompletes to the unique part of the file name.
因此,如果您拥有文件x.txt,x171go和x171stop,则会发生以下情况:
So if you have the files x.txt, x171go and x171stop, the following will happen:
Press keys: Command line is: x x <ESC>\ x 1 x1 <ESC>\ x171 g<ESC>\ x171go更多推荐
如何使用vi编辑器在KornShell命令行中自动完成
发布评论