如何使用vi编辑器在KornShell命令行中自动完成

编程入门 行业动态 更新时间:2024-10-25 08:22:16
本文介绍了如何使用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命令行中自动完成

本文发布于:2023-10-23 00:15:51,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1519168.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:编辑器   如何使用   命令行   自动完成   vi

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!