Linux Series Tutorials (10)--linux text editor vim

Source: Internet
Author: User
Tags linux text editor

Through the previous blog we finally ended the introduction of common Linux commands, Linux commonly used commands mainly include the following:

①, Linux file and directory processing commands

②, Linux link commands, and Rights management commands

③, linux File Search command

④, Linux Help, and user management commands

⑤, Linux compression and decompression commands

⑥, Linux network, and shutdown restart commands

Learning commands, we don't need to remember the detailed syntax format of each command, and we just need to know what a command can do after we finish our study. So we in the actual application, encountered the need to implement a function, our mind as long as can be remembered to apply to a command on the line, as for the detailed format we can check the data. When we use more, we will unconsciously remember these commands, this is the right way to learn. There are a lot of Linux commands, if beginners want to remember the detailed format of these commands, it will be a great learning frustration for us, have not finished these commands, perhaps you have lost the enthusiasm to learn Linux.

To end the learning of Common Linux commands, let's learn about Linux's most commonly used text editor commands vim. In fact, the first Linux system Text Editor command is VI, later appeared a VI enhanced version of VIM, so in practice we still use the enhanced version of Vim.

1, vim mode of operation

  

Vim mainly has three modes of operation, namely command mode, insert mode and edit mode, enter the vi file name we can enter the command mode, enter the character I or a or o we can enter the insertion mode, after entering the insert mode we can make the contents of the file modification, after the completion of the modification, you can enter: Wq You can save the exit. This description appears in the characters I, a, O, etc. we will describe in detail below.

2. Insert command

  

After the vi file name, we usually enter the characters shown above into edit mode.

3. Positioning commands

  

  

4. Delete command

  

5. Copy and Cut commands

  

6. Replace and Cancel commands

  

7. Search and search replacement commands

  

8. Save and Exit commands

  

9. Vim Advanced operation

  

10. Summary

This blog we introduce the use of the Linux text Editor vim command, vim of several modes of operation of the switch, insert commands, location commands, delete commands, copy and cut commands, replace and search, and finally do not forget how to correctly save the exit and so on. Content is still quite a lot of, but we do not be impatient, these operations basically we follow the use of more will be slowly down.

Linux Series Tutorials (10)--linux text editor vim

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.