VI introduction (3) EX command

xiaoxiao2021-03-06  22

◎ The command below EX Commands belongs to the EX editor. This means that you need to change to an ex mode (:) vi / ex mode when VI is executed, you can switch to the EX MODE input vi.! Shell Command Execute Shell Command "Solution" # 数 显示 显示 选择 选择 选择 选择, 号 号 号 号 行 号 文 执行 执行 执行 执行 执行 执行 行 行 行 行 行 行 行 行 行 行 行 行 行 行 行 行 行 行 行 行 文 文 文 文 文 文 文 文 文 文 文 文 文 文 文 文 文 文.: 1A! 2 (1 1 = 2) Row Generating Input Text) The following message ENTERING EX Input Mode will then enter text Press Ctrl C End [Row number] C! This row is replaced with the input text. Start from 1.: 1C! (In the first line generation replacement text) Next, the following message Entering EX Input Mode will then enter the text to replace the Ctrl C finish [row number] D will be in the number of lines The article is deleted. 1,3d (indicating from the 1st line to line 3) [EE] DIT! File_name [EE] X! File_name Edit Different files, this is editing file_name, [ ] Represents one of them. You can also use: e file_name or: edit file_name to edit Different file exu [Sage] [EX Command] Show the way of use of the ex command. Show your EDIT's usage : Exu Edit Show the result - - - - Command Begin Editing Another File Usage: [EE] [DIT] [!] [ cmd] [file] Press Any Key to Continue [: to enter more ex command]: Show an easy narrative, using syntax, continuing F [≤ lele] [file_name] display file message (similar to Ctrl g in the vi command) [Range] g [Lobal] / Pattern / [EX Command] The eligible style can be set with an EX command to set around, if there is no setup representation. If you do not add commands, you will only display content that match the style.

Such as: g / bsd / (display with BSD) [RANGE] V [Lobal] / style / [EX command] will not meet the conditions to be used with an EX command processing, if there is no setting representation . If the command will only display content that does not match the style. Such as: g / bsd / (display without BSD) HE [LP] display help message [number of lines] i [NSERT]! Insert the text content, insert the number of keys, the original number of lines ] j [oin]! This specified line is combined with the next line. [Number of lines] L [IST] shows the specified line (enclosure). [Wai] M [OVE] LINE moves a peripheral content to a self-order line. After moving 3-5 rows to Chain 6, the instructions are: 3, 5m6 mk [EXRC] [!] File_name Write the abbreviation, editing parameters and MAP to file_name [nn] [ext] [!] [File .. ] Continue to edit a certain file. PRE [Serve] stores files in the form of Ex -R to recover. [PP] Rev [IOS] [!] Edited the previous file. [Wai] P [RINT] Show content [Row number] PU [T] puts the contents of the buffer on a particular line. Q [UIT] [!] Forced leaves Rec [over] File Reply The file used in previous pre-stored files, equivalent to Vi -r FileName: file is placed in /var/tmp/vi.recover data sheet SE [T] setting environment Variables, after the rear, the variable (value) Se [T] [all] shows all environment variables SH [Ell] jumping editing, returning to the shell, can perform other actions. Leave the shell with EXIT. SO [URCE] FILE reads commands from the file [RANGE] S [UBSTISTE] [/ Substituted Style / Substituted Style /] Substitution will be replaced with a substitute pattern in a peripheral. Su [spend] [!] Term program, return to the shell, reply to the version of the VI editor with the SU! VE [r] [!] With the SU! VE [r]. VI [SUAL] Enter VI (Exem) VIU [Sage] [SAGE] [SAGE] [SAGMAND] Displays the syntax of VI Command, if there is no special designation, all. [Wai] W [Rite] [!] [>>] [file_name] attached to the file file_name. [Wai] W [Rite] [!] [File_name] Save the encirclement file_name.

转载请注明原文地址:https://www.9cbs.com/read-39953.html

New Post(0)