还有更多,它们都在 Xedit 手册页面上列出。
Xedit 还含有一个类似 ex 的行编辑器,这对 Vi 和 ed 甚至 sed 用户应该很熟悉。要进入行编辑模式,按下 Esc 键。这将使你处于顶部的文本输入框,但处于命令模式。编辑命令使用的语法是:行号后面跟着一个命令和参数。
比如说你有这个文本文件:
ed is the standard Unix text editor.This is line number two.你决定将第 1 行的 ed 改为 Xedit。在 Xedit 中,移动到第 1 行,按下 Esc,然后输入 .,s/ed/Xedit/。
Xedit is the standard Unix text editor.This is line number two.不用将光标移到下一行,你可以将 two 改为 the second。按下 Esc,然后输入 2,s/two/the second/。
各种命令和有效的参数在 Xedit 的手册页中列出。