Little white Python road 10/30 vim editor

Source: Internet
Author: User

1.vim editing process after entering the command line

About the edit:

A converts the command-line mode to edit mode, with the cursor at the beginning,

I insert, O lowercase means go to the next line to edit; Capital O means to go to the previous line edit

1. Introduction to VI Editor (see Linux System Management P252)
1) Master VI definition: VI is a UNIX and Linux system embedded in the standard body (text) editor, it is an interactive type of body editor, it can be used to create and modify body files.
2.VI Editor operating mode (see Linux System Management P255)
1) Master the VI Editor in the 3 basic mode:
A) command-line mode: The default mode for VI. In this mode, all inputs are interpreted as VI commands, which can be used to modify, copy, move, paste, and delete the text, as well as to move the cursor, search for strings, and exit VI operations.
b) Edit mode: In edit mode, the text can be entered in a previous file. In this mode, each character entered is interpreted by the VI editor as the body of the input. Use the ESC key to return to the command-line mode.
c) Extended mode: Also called the last line mode on some UNIX systems. In this mode, you can use some advanced editing commands, such as searching and replacing strings, saving or exiting the VI editor, and so on. To enter the last line mode, you need to enter a colon (:) in the command line mode, and the colon will move the cursor to the last line of the screen.
3. Cursor movement in VI Editor (see Linux System Management P256)
1) Master the relationship between the keys used to move the cursor position in the VI editor and the cursor movement, as in the following table:

4. Enter insert mode (see Linux System Management P258)
1) command to enter insert mode from command line mode:
A: Enter insert mode and add after the cursor.
I: Enter the insert mode and insert it before the cursor.
O: Enter insert mode and open a new line below the current (cursor) line.

5. Delete and copy operations in command line mode (see Linux System Management P259)
1) master commonly used buttons for deleting and copying

6. Paste command

1) Master the Paste command:

7. Undo and Redo Commands

1) master the commonly used undo and redo Commands:

8. Storage and exit of extended mode and files

1) Master commands commonly used in extended mode:

9. Quickly move the position of the cursor in the file

1) command to quickly move the position of the cursor in the file

10. Quickly move the position of the cursor in the screen

1) command to quickly navigate the position of the cursor in the screen

command of the cursor position throughout the file

GG file start g file tail

  

Part of the content from Lamb teacher Blog Http://www.cnblogs.com/linhaifeng/articles/6045600.html#_label10

Little white Python road 10/30 vim editor

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.