在unixlinux环境中使用vi编辑文件(Edit files in Unixlinux using VI)
在unixlinux环境中使用vi编辑文件(Edit files in Unixlinux using VI)
Windows network administrators have long used Edit, Notepad, or Wordpad to edit text files and hand written documents. For UNIX operating systems, most UNIX systems have different types of editors, but the tools used are not the same, depending on the UNIX system being used. Currently, some editors have even become powerful competitors for Microsoft's Word, such as Sun Microsystems. However, VI visual editors are installed on all UNIX operating system machines. Once you master the VI technique, you can edit the files randomly in all UNIX operating systems, including the Linux operating system.
What is Vi?
At first glance, VI has nothing to do with it except for full screen visualization. But she's a very powerful editor and can do whatever you need. VI allows you to edit and browse the entire file at the time of operation. Many previous editors, such as ED, are line editors, which can only edit and browse one line of text at a time. As a result, VI is more convenient for browsing the entire file than in the past UNIX editor.
Many UNIX operating systems focus on several different command line functions, such as nroff and troff. Like Microsoft's Word, these command line functions can edit documents of different formats and styles. I personally used these tools to write my graduation thesis and it was very convenient.
You don't have to worry too much about installing VI on your machine without requiring a specific installation path. When installing the system, the VI automatically appears. Because system administrators need to use VI for a lot of work, including creating system text and so on. Redhat's Linux provides the choice of installing specific editors in the system, but it is rare to not install VI in the UNIX operating system.
The author's notes
This article is based on the Solaris 7 VI. Although I'm talking about a specific version of VI, the methods discussed here can be applied to any VI version, and al