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
VIM Code FoldingVim code folding can be set with the "foldmethod" option, such as: Set Foldmethod=indent
There are 6 ways to collapse code
1. manual//Manual definition Folding2. Indent//Folding with indentation3. Expr//definition of folding with
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
About my VIM configuration
Often write code on the server, a friend provided about his vim configuration, here to share to everyone.
Interface Effect Chart:
. VIMRC
The contents are as follows
"===============================================
First, the editing mode
Keys
Role
I
Insert in current word match either
I
Insert at the beginning of the line where the cursor is located
A
Insert in current word
Vim ~/.VIMRCVim student.ccFirst of all. The Mac system already has Vim installed by default. Open terminal, input vim, enter.You can see, for example, the following interface, which means that Vim is already installed. Enter ": Q" in vimOn the
Ext.: http://www.cnblogs.com/lee0oo0/p/3548030.htmlAdvanced some of the editor, will contain the macro function, Vim is certainly not missing, the use of macros in Vim is very convenient:: QX starts recording macro and registers the result in
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
1 SetNu2 SetWrap3 Settabstop=44 Setsofttabstop=45 SetShiftwidth=46 Syntax on7FileType on"turn on the Vim file type Auto-detect feature8 Setautoindent9 SetsmartindentTen Setscrolloff=Ten One SetRuler A SetHlsearch - Sethistory= - - the "Set
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
Use Vim when there is Chinese garbled, the problem is on Vim, for CentOS should modify the/ETC/VIMRC file, add the following four lines of code on the header of the file:
Set fileencodings=utf-8,gb2312,gbk,gb18030
Set termencoding=utf-8
Advanced some of the editor, will contain the macro function, Vim is certainly not missing, the use of macros in Vim is very convenient:: QX starts recording macro and registers the result in register XQ Exit Record mode@x playing macro commands
Fix an issue where pasting in Vi/vim will have a lot more indentation and whitespace at the beginning of the line SECURECRT will send your original text intact to the server as a string style. So when the vim on your server is set to Autoindent, in
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
ObjectiveValloric/youcompleteme can be said to be one of the most complex of vim installation, but once installed, it is very useful. Youcompleteme abbreviation YCMIn the process of installation toss-up, I once again realized that, in addition to
1 Installing VIM2 Install the VIM plug-in management tool. The process is shown in the link. Thank3 .vimrc Add the following code in the' Valloric/youcompleteme 'After saving exit, open vim and enter in normal mode: BundleinstallWait for the
Character editing:X: Delete the character at the cursor;#x: Delete the # characters at the beginning of the cursor;XP: Swap the position of the character where the cursor is located and the character behind it;Replace command (R, replace)R: the
Here is the solution I configured when I encountered a problem unable to modify the configuration file1/usr/share/vim/vimrc2 This is a system-type VIMRC configuration file, in order to ensure the normal use of vim, the general does not modify this
Take a look at Martin Brochhaus's video, today I also tried to configure the Vim Python IDEYou only need to https://github.com/wyj1239630590/vim-as-a-python-ide in the future, and then copy the. VIMRC to the home directory, install the Package
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service