Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux ex Command

Linux ex Command

Linux Command Reference Linux Command Reference

The Linux ex command is used to start the vim text editor in Ex mode.

ex works like vi -E; its syntax and parameters can be referenced from the vi command. To return from Ex mode to normal mode, simply type ":vi" or ":visual" in vim.

Syntax

ex [选项][参数]

Parameter Description:

Example

After typing a file name following the ex command and pressing Enter, you enter ex editing mode. For example, to edit the file testfile, use the following command format:



ex testfile 

The output information is as follows:



"testfile" 5L, 95C 

"testfile" indicates the file name, 5L indicates 5 lines, and 95 indicates the byte count

Enters ex mode. Type "visual" to return to normal mode

Its operation is the same as in vim. At this point, if you type "visual" after the ":" and press Enter, you will enter the full-screen interface of the vi command; if you type "q", you will exit the editor.

Linux Command Reference Linux Command Reference