Recently on personal blog http://foocoder.com will introduce a vim plug-in every day, think of the garden has not been updated for a long time, but also to update an article.
Today, according to the request of the reader, introduce the next text
Vim is very powerful. It can be viewed by man vim (the man is the manual that looks at the command, and the man plus the commands to see the usage)
Below is a simple description of the following simple VIMRC configuration
Look at the
Vim settings display line numbers by defaultVIM Displays the line number when it is opened by default, so that you can display the line number manually in command mode without having to edit it each time.To create a configuration file for a.
The main reference is the integration of the online comparison of the heat of a few vim configuration documents, coupled with my habits and formed. Thanks for their dedication!Basically there are comments on each line of the configuration, and I
Vim is the greatest invention of all time, there are a lot of interesting methods, I have a brief introduction here, let your vim use more efficient. Now open your VIM editor and follow the top teacher's action.Improve: 1. .→ ( decimal point )
XShell under the use of vim editing a file, save the time habitually press the CTRL+S structure tragedy. The screen was locked dead. Pressing other keys does not respond, exc also not. After asking the degree of Niang only know.The original ctrl+s
Article Original address: http://geek.csdn.net/news/detail/34295I have always wanted to configure VIM with Vim has always felt that there is no visual use of the cool, but considering so many people use, that there must be a configuration of the
Vim Usage Tips1. Vim Advanced functionLocal selection and manipulation of text content (normal mode)Operation functionV Select part of the character, move the cursor after the first selected character Press "V", and the cursor will be selectedV
The VI in CentOS only installs the vim-minimal-7.x by default. So whether the input VI or VIM to view the file, the syntax function is not enabled properly. It is therefore necessary to install the other two components with Yum: vim-common-7.x and
Insert Command
I
Insert before the cursor
I
Start insertion at the current line of the cursor
A
Insert after cursor
A
Inserts at the end of the current line of the
Vi/vim Basic Use MethodThe 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.1, VI of
1 Vi/vim keyboard diagram2 text commentary6 ways to enter edit mode:I insert before the cursorI insert at the beginning of the lineA after the cursor is insertedA inserts at the end of a rowo Insert in next lineo Insert in previous lineDelete
Full Screen text editorVI:Vim:vi ImproveModal editor Edit mode (Command mode) Last-line mode Insert modeReplacement modeVisualization mode1 VI2 Vim file3 Vim + Number file If the number of rows positioned is greater than the maximum number of
Three command-line mode operation1. Enter insert modePress "I": Enter the file starting at the cursor's current position.Press "I": Insert at the beginning of the line where the cursor is located.Press "a": Enter text from the next position where
First, why should we learn the VIM editor?There are a lot of text editors under the command line interface of Linux. For example, there are Emacs, Pico, Nano, Joe and VIM, etc. that are often heard. Vim can be seen as a premium version of VI. Why do
vim most general editor commands command very much, only need to master the following some of the commonly used, basically fully enough.The most concentrated of the essence.Vim Insert mode Command mode edit mode : Set number sets line numbers: Set
Vi/vim open mode, open the interface directly
How to turn vim off: Q: Direct close not saved
: q! Force close but not save: w Save changes: Wq Save and exit
In VIM mutation mode, move cursor KJHL: up or down
Inline jump 0 Beginning
Vim has four modes of normal Mode,insert Mode,commond mode and visual modeI key into insert mode, insert the character before the cursor coverA key enters insert mode, which is inserted after the character that is covered by the cursoro key into
Vim is set to automatically add spaces to the left and right sides of the operation symbols such as =+-. The original VIM does not have this function, write code such as Z=x+y, not beautiful, many compilers (such as VS) can automatically add space
Makefile Rules:[email protected]: target file$^: All dependent files$-C: Output target code, do not output executable file-G: Compile the compiler to provide information later on the program debuggingTarget:rulesGcc-o [email protected] $^InstallCP
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