I am very sorry, this is my 12 years of configuration, has been in the open source China community to share, the following are constantly updated and modified. More suitable for front-end engineers to use.Vim is configured as follows:
Set
In the terminal under the use of Vim for editing, by default, the editing interface is not displayed line number, syntax high-brightness display, intelligent indentation and other functions.
In order to better work under VIM, you need to manually
The code naturally without the text editor vim, automatic indentation is tab, even if you delete the tab changed to 4 spaces, the next level indent will continue to use tabs, which caused the Space and tab mix
Information that can be modified,
3.3 DebuggerDebugging is an essential part of the application development process, so it is very important to have a good debugger, unfortunately, Go in this aspect of development is not very perfect. Currently available debuggers are GDB, the
It's been a long time since the last article was published. In the past six months, although the code is not much, but in contact with the computer some other knowledge, including the database, the network, the feeling can digest, write code level
1. Select a text block. Using V to enter the visual mode, move the cursor key selection.2. The command to copy is Y, which is yank (lifted), and the commonly used commands are as follows:Y Copies the selected block to the buffer when a piece is
1, first use VIM to open the binary form of the file, if not binary may produce a conversion error.Vim-b File-to-open.dat2. convert files to hexadecimal format with XXD:%!xxdYou can now view and edit binary files just like normal text.3. Vim Single
Unit 41. Managing input and outputIn a Linux system, the correct output number is 1, the error output number is 2Perform "student" with ordinary users in the system650) this.width=650; "Src="
VI and VIM1. Introduction:The VI Editor is the standard editor for all UNIX and Linux systems, and he is the equivalent of a notepad in the Windows system, which is no less powerful than any of the latest text editors. He is a tool we cannot use
In Vim, ESC is a common key, but we need to move so much to touch it, so how can we use it more conveniently?There are a lot of methods on the net, alt-[and DF Key mapping is the two methods I have used, now let's talk about their problems,DF Key
How to Exit Vim
Learn a few patterns first:
General mode: Press the ESC key
Command-line mode: First cut to normal mode, then press SHIFT key and then enter ":"
Insert mode: Press A or I in general mode
Seven Ways
Learning vim is often needed, and these commands are the most commonly used commands I've had this time, and it's very efficient to improve myText editing efficiency.------------------------------------------------------------------------A1. Text
Https://github.com/Raimondi/delimitMateDelimitmate is a good plugin for auto-brace completion, but if you don't have a good way out of parentheses, you want to shading the discount.The best way I can find it right now is to do a mapping in an insert
Www.vim.org-Scripts, Browse All can see there are 5,051 plugins.Search nerd can see Nerdtree plugin, it's rated rating 7882/2514, downloaded by 183205Most plug-ins have a 1000 download volumeTagList has not submitted anything in recent years. Seems
1.1 General Mode Available button description, cursor movement, copy paste, search substitution, etc.
How to move the cursor
h or LEFT ARROW key (←)
The cursor moves one character to the left
J or DOWN
One, if the terminal has not yet opened vim1, Vim horizontal split screen open multiple filesVim-o Files 1 Files 22, VIM vertical split screen open multiple filesVim-o Files 1 Files 2Second, if the terminal has been opened vim1, horizontal split
Save the file and exitIt's a shame to say it, and I've learned this order recently.??And the following command is equivalent:: Wqis to save the current file and exit.(Translator Note: These two commands are actually not exactly equivalent when the
Today with git commit-m "comment" submitted, the comments were wrong, so the various search data began and git bash vim entanglement ... (Online information I really did not operate successfully, but finally found out)Start with the git
1) Cursor commandK,j,h,l---up and down around the cursor Movement command, although you can use the keyboard to the right of the four cursor keys, but remember that these four commands are also very useful, that is, the right hand on the keyboard
Open a hole and record the evolutionary process using VIM. This thing is not a day or two with the fine, more natural feel that there are many places need to further study, and slowly come up with efficiency.First I spent most of the time on win to
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.