Directory
- 1, vim mode of operation
- 2. Insert command
- 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
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.
Back to top 1, VIM's working mode
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.
Back to top 2, insert command
After the vi file name, we usually enter the characters shown above into edit mode.
Back to top 3, positioning commands
Back to top 4, delete command
Back to top 5, copy and cut commands
Back to top 6, replace and cancel commands
Back to top 7, search and search replace command
Back to top 8, save and Exit commands
Back to top 9, VIM advanced operation
Back to top 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 Text editor vim