Vi introduction (2) Parameter introduction

xiaoxiao2021-03-06  22

◎ EX, VI, View - Text Editors ◎ Synops Vi [-efglrrsv] [-c cmd] [-t tag] [-w size] [file ...] EX [-efgrrsss] [-c cmd] [-t Tag] [-w size] [file ...] ◎ Description EX and VI are the same, different interfaces, EX is line-oriented, VI is a screen oriented. two Can switch each other. View is equivalent to VI using -R (only) parameter ◎ Options -e starts editing in EX mode, as in editing with EX. Vi -e filename is equivalent to EX FileName -f when editing for the first time, do not let VI whole file. (The preset is the entire file to avoid when you have changed this file when you edit.) -R is turned on in the read mode, as in the VIPW, or set the readonly parameter in the command column. -R re-acquires a particular file. If no file is specified, the file list will be re-acquired. If there is no specified file, the file will be treated as no -r parameter editing. -S starts with secure editing mode without allowing all external programs. -S Enter the BATCH mode and can only be applied to EX editing. BATCH mode is very useful in Exf Scripts. Some timely information and other user-oriented messages are ignored (not displayed), and no start file or environment variable is read. -W Sets the basic window size to define the number of lines displayed. -V starts editing in VI mode, like VI or view commands. EX / VI reads the message from the standard input, in the VI interface, if the standard input is not a terminal, an error will occur. In the EX interface, if the standard input is not a terminal, no matter how EX will try the command from him. However, it will be performed in a BATCH mode, as is the -s parameter being specified. ◎ Reference: Man Vi

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

New Post(0)