Getting started with step by step (1)

zhaozj2021-02-16  91

VI Editor Getting Started (1)

Http://91mail.51.net provides, want more to complete documents, please go to http://91mail.51.net download VI is a mode editing tool, so VI is also explained in different modes. Different. The VI editor has three working modes: command mode, insert mode, and EX escape mode 1. How to start and exit VI1.1 Starts on the Shell prompt to enter: VI [to edit the file name], for example: $ vi hello.c? Question If the tip of the end is not found, "Unknown" Unknown Terminal Type I don't know. All i Have IS "unknown" Description VI does not know the terminal type, should go back to Shell first In the prompt state. Then use the following command to set the terminal type, where VT100 is the default terminal type. If you are using C shell: # setnv Term VT100 If you use B shell or k shell: $ set term = vt100; export term If you want to save the settings, then use the following command # echo? "SetENV TERM VT100 ">> .login (if it is cshell) # echo?" Set term = vt100; export term ">> .profile (if it is bshell or kshell) 1.2 Exit exit command has the following: Q! Do not save exit: WQ After saving: Q Exit: ZZ only writes the buffer content to the file when you have changed: x and: zz

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

New Post(0)