Linux system Vim Editor and find command related knowledge

Source: Internet
Author: User

Text editor, word processor

Ascii

Nano, SED

Vi:visual Interface

Vim:vi improved

Full screen editor, patterned editor

Vim mode:

Edit mode (Command mode)

Input mode

Last line mode

------------------------------Mode conversion:

Edit--> Input:

I: Switch to input mode at the front of the character at the current cursor;

A: After the current cursor is the character, the input mode;

O: Creates a new row below the line with the current cursor and moves to input mode

I: Switch to input mode at the beginning of the current cursor

A: At the end of the line at the current cursor, switch to input mode

O: Creates a new row above the line on which the current cursor is located and moves to input mode

Enter--> edit:

[ESC] Key

Edit--> last line:

Last line--> edit:

[Esc],[esc]

Input mode and last line mode cannot be converted directly

First, open the file

#vim/path/to/somefile

Vim +# #为数字, that is, open the file direct cursor in the first few lines

Vim + directly on the last line

Vim +/pattern: Opens the file and navigates to the beginning of the line that was first matched by pattern

Default in edit mode

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.