如何使用vi编辑器在KornShell命令行中自动完成 [英] How to autocomplete at the KornShell command line with the vi editor

查看:71
本文介绍了如何使用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命令行中自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆