1. Vim Introduction
Vim (Visual Interface improved) is an exceptionally powerful text editor, if everyone's understanding of it is still in the editing of files, and then quit the stage, it is too sorry for vim, but instead of using the nano to the refreshing. But it's painful to learn the beginning of vim, and if you want to do it all at once, you think more. So we need to combine the actual situation, practice, and carefully. Here is a summary of the use and functionality of Vim, hoping to help you learn vim.
2. Three major models and their linkages
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/85/A1/wKiom1eqt8KAjPknAAAUOtQaDwQ849.png "title=" Vim3.png "alt=" Wkiom1eqt8kajpknaaauotqadwq849.png "/>
3. Vim usage
<1> Syntax format
Vim [OPTION] ... FILE ...
<2>[option]
+ |
after opening the file, leave the cursor directly at the beginning of the last line |
+# |
after opening the file, leave the cursor directly at the beginning of line # |
+/pattern |
after opening the file, leave the cursor directly at the beginning of the first line that is matched to the PATTERN |
-m |
read-only open file |
-E |
open directly into edit mode |
4. Command line mode operation
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/85/A7/wKiom1erB1iRDhu5AACTzcuQ2UU220.png "title=" The command-line mode moves the. png "alt=" Wkiom1erb1irdhu5aactzcuq2uu220.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/85/A7/wKioL1erGVvT3KgQAACyGmGV9wY437.png "title=" command-line mode edit. png "alt=" Wkiol1ergvvt3kgqaacygmgv9wy437.png "/>
5, the last line mode operation
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/85/A7/wKioL1erJmORlPvWAACh9xUhHQQ179.png "title=" Last-line mode. png "alt=" Wkiol1erjmorlpvwaach9xuhhqq179.png "/>
6. Visualization mode
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/85/A8/wKiom1erJnOSfPFFAAArOH_tkFc637.png "title=" Visualization mode. png "alt=" Wkiom1erjnosfpffaaaroh_tkfc637.png "/>
7. Multi-file Mode
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/85/A6/wKioL1erBzijlSdIAAAk8DJ0Nd4557.png "title=" Multi-file mode. png "alt=" Wkiol1erbzijlsdiaaak8dj0nd4557.png "/>
8. Multi-Window Mode
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/85/A5/wKioL1eq6uXByy2gAAA5lqyo5x0764.png "title=" Multi-window mode. png "alt=" Wkiol1eq6uxbyy2gaaa5lqyo5x0764.png "/>
9. Vim configuration file and its working characteristics
<1> configuration file: Permanent entry
Global:/etc/vim
Personal: ~/.VIMRC
<2> Working characteristics (set in last-line mode)
▲ Line number
Display: Set number, abbreviated as set Nu
Cancel display: Set Nonumber, abbreviated to set Nonu
▲ Auto Indent
Enable: Set AI
Disabled: Set Noai
▲ Highlight Search
Enabled: Set Hlsearch
Disabled: Set Nohlsearch
▲ Syntax highlighting
Enabled: Syntax on
Disabled: Syntax off
▲ Ignoring the case of characters
Enable: Set IC
Do not ignore: set Noic
* The above features are set to take effect temporarily , if you want to take effect permanently, can be set in the corresponding configuration file
* If you want to see all the features you can set, you can perform the set all view in the last row mode
10. Vim Help information
If you don't know anything about vim, there are two ways to get help.
<1> Execute vitutor command
<2> execute help command in end-of-line mode
This article is from the "dmwing" blog, make sure to keep this source http://dmwing.blog.51cto.com/11607397/1836588
Vim Editor Advanced