Transferred from: http://www.vpser.net/manage/vi.html——————————————————————————————————————————————————VI (VIM) is a very common editor on Linux, and many Linux distributions have VI (VIM) installed by default. VI (VIM) commands are numerous but if
We often have to open multiple files, different Windows operation of multiple files, split screen is very useful.1 Command mode:: New, new file and split screen, shortcut keys, ctrl+w, and then immediately press N: Spilt horizontal split screen, the
**********************************************************************0. Introduction to this tutorial: Vim is a classic editing program under Linux/unix, which is efficient, focused, flexible and powerful, and is a fundamental skill that
Vim Setup Code FoldingToday looked at someone else to write the program's source code, found to be written with Vim, the code is interesting to use vim to fold the code, at first I thought it was a plug-in, and later on the Internet to check, to
Http://www.cnblogs.com/fakis/archive/2011/04/14/2016213.html1. Folding Mode
You can use the following options to set the folding mode:
Set OFDM = xxx in the vim configuration fileYou can directly call the vim command/* VIM: Set OFDM = xxx: */
Vim auto-ingress
1. Configuration File LocationUnder the/etc/directory, there is a file named vimrc, which is a public Vim configuration file in the system and is valid for all users. In each user's home directory, you can create a private
Beautiful perl formatCodeIt is not only pleasing to the eye, but also easy to read.
Perltidy is a small project of SourceForge. After we finish writing the messy code, he can organize the code like magic. Come and try it !!!
Perltidy home:
After adding this plug-in to VIM, write c ++ Java and so on.ProgramYou can automatically add some fixed-format structures, just like Eclipse. For example, you can enter for to see the complete
For (=;+=){}
Press the tab key one by one to locate
I. Basic concepts of viBasically, VI can be divided into three states: Command mode, insert mode, and last line mode. The functions of each mode are as follows:A) Command Line Mode)Controls the movement of the screen cursor, the deletion of
This section describes some advanced functions of VI and Ex.
Configure vi
The configuration file. exrc can be saved in your home directory and executed when VI is started. However, you can place a configuration file in the current working directory
Four steps to learn Vim
1 Adaptation
2. Comfortable
3. Feeling good, strong, and fast
4. Use advanced Vim Functions
Level 1
I-> insert mode. Press ESC to return to normal mode.
X-> Delete the character where the cursor is located
: WQ-> Save and
Vim configuration file location:/Etc/Vim/vimrc ~ /. Vimrc
Steps for creating an ide
, Ta, NN Testing
Use large ide
, Da generation documentation description, DD generation function description
, JD jump function, O closes other windows, BF
After thinking about the editor for a while, I want to start preparing to write the program, so the debug schedule is raised. This is to build the vim-based PHP editing platform...
---------------------------------------------------------------------
Vim command collection
Command history
Commands starting with ":" and "/" have historical records. You can first type ":" or "/" and then press the up or down arrow to select a historical command.
Start Vim
Enter the following command in the
Document directory
Plugin Introduction
Plugin installation
Plug-in usage
Plugin limitations
Extension
Summary
Expand the vim plug-in by yourself-code_complete.vim
By Ma Dongliang (cream Loki)
One man's war
The help entry for the commands used in this section:
:help quickfix:help :make:help 'makeprg':help 'errorformat':help 'switchbuf':help location-list:help grep:help :vimgrep:help :grep:help starstar-wildcard
I used to read martial arts novels and
What I finally added under _ vimrc is:
1 map :w!:!E:\Aspell\bin\aspell --lang=en check %:e! %
Execute Aspell to check the current file by pressing F9
Note:% In vimrc indicates the current file
E: \ Aspell \ bin \ Aspell change to the directory
Delete unnecessary Spaces
End of line: $Beginning of line: ^Space: \ s
Space at the end of the line: \ s \ + $Space at the beginning of the line: ^ \ + \ s
Some people think that the space at the end of a row is useless and ugly. To delete
Address: http://linuxtoy.org/archives/efficient-editing-with-vim.html
Although Vim was used a long time agoTuneClick here and use only the commands you want. Recently, in order to improve code writing efficiency and coding fun, I re-studied vim and
Ten required Vim Plugin
Http://www.openfoundry.org/en/tech-article/2244
The configuration of vimrc is as follows (for the sake of simplicity, you can directly describe it using annotations ):
If (has ("win32") | has ("win95") | has ("win64") |
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