Linux foundation -06-vi Editor

1. vi editor Introduction
The definition of 1) vi is: vi text is a standard UNIX and Linux systems embedded (text) editor, which is a type of interactive text editor that can be used to create and modify text files.
Operation mode 2. vi editor
3 basic mode vi editor:
a) command line mode: The default mode of vi. In this mode, all of the input command is interpreted as vi can perform edit, copy, move, paste, and delete text commands may be performed to move the cursor, the search string and exiting vi operation or the like.
b) editing mode: in the edit mode can be entered into a text file. In this mode, each character input is interpreted vi editor for text input. Use the ESC key to return to the command line mode.
c) Extended mode: On some UNIX systems, also known as the last line mode. In this mode, you can use some advanced editing commands, such as search and replace strings, save or exit the vi editor, and so on. To enter the last line mode, enter a colon (:) in command-line mode, the colon this operation will move the cursor to the last line of the screen.
3. cursor movement in vi editor
The relationship between the master key and the cursor movement for moving the cursor position in the editor vi, as follows:
4. enter insert mode
Enter the command line mode command to insert mode:
a: insert mode and enters added after the cursor.
i: inserted into insert mode and before the cursor.
o: Insert mode and start a new row below the current line (cursor).
5. Remove replication in command-line mode operation
Commonly used to delete and copy of commonly used keys
6. Paste command
Paste command:
7. Undo and redo command
Undo and redo commands commonly used:
8. Extended mode and file storage and exit
Extended mode commonly used commands:
9. The rapid movement of the cursor position in the file 
Rapidly moving the cursor position in the command file
10. The rapid movement of the cursor position in the screen
Fast moving the screen cursor position command

Guess you like

Origin www.cnblogs.com/lsf123456/p/11124804.html