Personal configuration has been put into the https://github.com/liown/vim-settings, mainly based on the configuration of Axiaoxin modified.Friends who need to put the. VIMRC directly into the ~/.VIMRC, into the vim execution: Plugininstall command
Children's shoes that often use VIM may notice that in the actual operation, in the insertion mode is very little, more is to view and browse, occasionally modified. Therefore, it is very important to quickly exit from insert mode into normal mode.
How to set it up:Keyboard by using the tools, options, and Settings in the VS menu bar.
Common shortcut keys:
Recommended keys
Edit. Go To Definition
Alt + G
650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/9E/25/wKiom1mMALfQw94QAABOR7DbIW0153.png "title=" 2017-08-10 07.png "alt=" Wkiom1mmalfqw94qaabor7dbiw0153.png "/>Vim when editing the file if you suddenly disconnect when you modify the
When you write a script, you can add copyright information so that the maximum usability of the script is where the individual labor isThe following is the automatic configuration to add copyright information when Vim writes a scriptEdit in the user'
You have to practice it yourself, or you can't remember.Move cursor: h,j,k,l key^KJVThe H key is on the left and moves to the left each time it is pressedThe L key is on the right, each time you press the right moveq! ExitX-Key DeleteDW Key Deleted$
Now, you don't have to worry about these complicated processes, because we can make use of Vim's shortcut keys to enable us to operate vim as smoothly as possible. Now, let me introduce a few very useful (we know that Vim shortcuts have a lot, not
1) command-line mode: The typed content is interpreted as a command.2) Insert mode: The type of content is inserted into the file.3) Visual mode: Select, cut, and copy text from the keyboard.4) Ex mode: Use more commands (for example: storing files,
In normal mode:The% match parentheses move, move the cursor over the brackets, and press% to move the cursor to the matching brackets./string find the full-text string, press N to move the cursor to the first letter of the next string;? String to
1. Displays the current time, the display format is HH:MM:SS, and is saved to the file Time.txt file.650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M02/9C/5F/wKiom1lvZbPC311MAABCfFDDzjY186.png-wh_500x0-wm_ 3-wmp_4-s_647382095.png "title="
Multi-line comments and delete multiline comments in Vim-------------------------------------------------------------------------------1. Multi-line Comment:A. Press CTRL + V to enter the column mode;B. At the beginning of the line, select the lines
This contact should be at 37, since it is necessary to modify the service time of some serversThis part should belong to the focus, about the VI of a lot of things, seemingly out of a few books specifically about VI. There are cows who use this
Linux uses Vim/vi to encrypt and decrypt filesfirst, using VIM/VI encryption:Advantages: After encryption, if you do not know the password, you can not see the plaintext, including the root user can not see;Cons: Obviously let others know encryption,
Vim+makefile Getting started editing, compiling, error instance vimmakefile compilingWrite code, generally in vim after editing, input: Wq, in the command line input g++ Hello.cc-o Hello, there is a problem, open vim, find the corresponding line
When editing a file, there may be situations where a particular action needs to be done many times to edit the following file as an example:;=====================================================================================; this isA sample
in general mode, enter : "or" / To Enter the command mode. In this mode, we can search for a character or a string, and we can save, replace, exit, display line numbers, and so on. in fact, "vim" for the full keyboard operation of the editor, so in
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