Linux learning notes (10) Text Editor vim, learning notes vim
Vim is a powerful full-screen text editor, the most common text editor for Linux/Unix. It is used to create, edit, and display text files. Vim features no menus and onl
Since 1970, VI and Vim have become one of the programmers ' favorite text editors. It was copied from other bloggers and it was very practical.Basis
: E filename
Open filename for edition
: W
Save file
: Q
Exit Vim
: q!
Quit without saving
Although today is National day, but study can not stop, today is learning is liunx, more important 2 editor, VI and Vim, perhaps someone asked why to learn these 2? There is no easy-to-use Nano.Mainly because there are some other liunx version, there is no built-in Nano, this if you suddenly touch can not start quickly, and V
Tags: and nowrap appear for EPO ... enter to remove scanBasic Command Learning Directory HomeOriginal link: https://www.cnblogs.com/mondol/p/vi-examples.htmlEnter VIvi filename# Open or create a new file and place the cursor at the beginning of the firstvi +n filename# Open the file and place the cursor at the beginning of nthvi + filename# Open the file and place the cursor at the beginning of the last lin
I. Introduction of VIM Mode1. Concept: The following introductory content from the Wikipedia vimThere are many modes of vim from VI, this unique design is easy to confuse the beginner. Almost all editors have two modes of inserting and executing commands, and most editors us
.htmlKeypad issuesWhen using VI on the putty, when opening numlock, press the numeric key on the keypad and not enter a number, but a letter and then newline (in fact, the command mode corresponds to the upper and lower keys). WorkaroundOption Terminal->features, find disable application keypad mode, select on it.The Xshell in Xmanager 4 also has a small keyboard problem resolution ofModify session Properties--terminal->VT mode--Initial numeric keypad
Most of the Linux content in this blog is for reference: Bird's private cuisineIf you need, please refer to: http://vbird.dic.ksu.edu.tw/linux_basic/linux_basic.phpWe already know most of the basic Linux content1. View System Information2. File and directory view3. File creation4. File Permission Properties5. User creation and deletion6. Package and unpacking of compressed packageNow you want to do the file editing and other operations to learn.Linux, most of the configuration files are in ASCII
You want to learn vim as quickly as possible (the best editor you know ). This is my learning method: Start from the details and learn all the skills.
Vim $6 billion Editor
Excellent Design, strong and fast.
Learn vim and use it as your next text editor. As far as I know, there is no better editor than it. It is diffic
I have also learned Vim before, but I didn't use it any more. I forgot some things. Now I want to refresh vim and make up my mind to use it as the main editor in the future! The following are some of the materials I have searched for. On the one hand, I will keep my own background, and on the other hand, I will make it easier for other readers to refer.
1. Some URLs, misunderstandings about
This record vim how this text editor is used and how it is used. Basic ConceptsIn the Linux environment, the configuration file is very important for the whole system, and it is all in ASCII plain text, and the text editor can be used to make the configuration easy to modify.VI is the most common full-screen plain text editor in Unix operating systems and UNIX like operating systems. The VI editor in Linux
First, prefaceBefore learning vim, but for a variety of reasons, did not continue to study, in fact, perseverance is not enough, not able to persist, so now vim will only be simple operation, really ashamed. Now pick up the learning vim and record the
delete content from the first line containing pattern1 to the first line containing pattern2:.,/Pattern/M23 move the text from the current line (.) to the first line that contains pattern to the end of 23 rows
Note:(1) the front and back of the pattern must be bounded by a slash.(2) If you use the delete mode in VI and ex, you will find that the two editors are operated differently. For example:D/while
Vim is the most famous text/code Editor on Linux systems, and the enhanced version of the Vi editor in the early years, and GVim is its Windows version. Its biggest feature is the full use of keyboard commands for editing, while leaving the mouse to make it difficult to get started, but the keyboard flow after the various clever combination of operation can bring a very large efficiency improvement.
So
motive of the tutorial: Controversial that the war between Emacs and Vim is not because of faith but because of religion, and I am a vim user (I have used Vim2 when I write this tutorial), and many times I have encountered problems in my studies and no one can ask, In contrast, Emacs's tutorial seems to be richer, which makes me very frustrated, just this time in writing the compiler, the rest of the time
The VI Editor is the standard editor for all UNIX and Linux systems, and its power is not inferior to any of the latest text editors, here is simply a brief introduction to its usage and a small number of instructions. Because the VI editor is exactly the same for any version of UNIX and Linux systems, you can learn more about it in any other place where
There are many kinds of text editors under Linux, VI is the most commonly used, and it is also standard for each version of Linux. Note that VI is just a text editor that can color characters and can be auto-complete, but unlike word in Windows, there is a typography feature.VI is a decade to grind a sword of the product, although the command is numerous, and mos
current selection area is used.I personally recommend using Ctrl + insert copy and SHIFT + insert paste.Vim has multiple clipboard, including the system clipboard. Use commands: RegYou can see the content of each clipboard. Where""Indicates the currently used clipboard,"0-9Is the historical clipboard,"#It is the system clipboard (you can copy something in the system to see if it will appear"#Clipboard ). Use in VIMYYou can copy the content""Clipboard number. If you continue with Y, new items wi
1, why to learn VISummed up the reason for Learning VI, personally, the original idea is to be able to pack B, simple rough; Later in some small practice found that the text editor is very meaningful, especially in the face of a system without a graphical interface, we must master this technology! (such as SSH remote operation ...) )2. Start and Stop VITo start VI
(i) Beginner's personalized configuration your vim1. What is VIM?Vim is VI improved, an enhanced version of Editor VI, an extremely powerful editor for it engineers (programmers, OPS) habits. If you are a professional SE, be sure to look for an excellent editor that can be customized to fit your flexible editing capabi
This article is your own study notes, welcome reprint, but please specify the source: http://blog.csdn.net/jesson20121020The most powerful text editor under Linux is Vi/vim, and its commands, if used flexibly, are more efficient than other text editors when writing programs or editing text.Vi/vim There are no menus, on
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.