Vi introduction (1) VI Quick Start

xiaoxiao2021-03-06  22

◎ Foreword I am a Pico user, when I was Redhat Linux users, I felt that Pico felt very kind and function was very powerful. After FreeBSD, suddenly found that there is no Pico, you need to install Pine only Can be achieved. But this is nothing, anyway is installed very quickly ... until one day, when I want to replace the action .. At this time .... Pico ... so I diverted VI ... Go to understand His rule representation, a simple little action makes the cumbersome work instantly. Not only this .. VI is an editor for all UNIX-LIKE ... No additional installation allows you to enter different systems Status. ◎ Fast Startup If you have never used the full screen editor, you may have a problem with some simple editing. So you might want to find someone who has already learned VI to lead you. VI is a screen The editor, which indicates that VI is almost used by each line of space on the screen to display the contents of the file. In addition to the last line on the screen. This line is used to give you the order command to you some related file information. Time to use. You must understand that VI is a schema editor. For example: You can enter text or execute the command, but you must be able to execute in the correct mode. You first edited a file You are in command mode. There are some commands that allow you to switch to input mode. However, only one key will allow you to leave the input mode, that is, the button on the left left of the keyboard is not Understand what you are currently in, you can continue until the VI makes a sound warning, so you have already returned to the command mode. When you try to do something you are not allowed, it will be issued " "Sound (When this machine is operated) To start editing a file You can do this: $ vi file_name and enter: set verbose mode then vi will remind you:: set the mode option May Never Be Turn ON: Although so, there are more messages for beginners. This will resume the original NOVERBOSE MODE to make VI when you don't have a good rest assured that you can give you more messages when you generate an error and you will display the bottom end of the screen when you press the button. Message, remind you that you are in command mode. Alleady in command: commands need to be implemented in command mode. △ Simple Move Command H Moves a character to left. J will mark the mark down. K will be Move a row. L will move a radio to right. The upper and lower left and lower left and lower should also be able to play. .. △ Simple search command / text Search TEXT string If I want to search for Panda today, it is / panda, / for the search command. △ mode switch A can be added after the start of the new start, adding text before marking o Add a row under the target and you can start entering text. o Add a row above the target and you can start entering text.

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

New Post(0)