Emacs is the editor of God, and Vim is the god of the editor. Why do they have such a reputation, and listen to this article to you one by one of the way.
Author:
Jiqing Wu
Email
[Email
Overview:Want to install Ctags, can not be installed. See the foreigner has a log, is in the VI 7.2 version of the operation. Even VI version of the reason, so want to upgrade, online upgrade method write less, and some write too no language, only
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 X Q Exit Record mode @x playing macro commands
Enter the root and directory:CD/root
2. Create. vimrc (this file does not exist by default. Note that there is a "." point in front of the file name. Is a hidden file), the configuration content is as follows:Set hlsearch # High Brightness
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: */
The cursor control command moves the cursor h or ^ h to move one character J or ^ n to move one row K or ^ P to move one row up l or space to move one character G to the right the last line of the file moves ng to the nth line of the file W to the
Use of the cssag plug-in:1 download: http://cscope.sourceforge.net/2 installation: #./configure# Make# Make install // root permission requiredNote: if an error occurs during the installation process, it is because you want to directly install the
Although Vim was used a long time agoTuneHangingSub-statements. Recently, to improve writingCodeEfficiency, as well as coding fun, and re-study vim, found a good VimQuick StartArticleThe original text is in the English version. I think it is very
If you have written a little bit of code, you will be able to know how convenient the integrated development environment (IDE) is. Whether it is Java, C, or Python, it is much easier to write code when ide will help you check the syntax, compile in
1. viminfo
For operations in Vim, VIM automatically records the operations and stores them in ~ /. Viminfo file. To facilitate next processing, for example, when Vim opens a file, the cursor will automatically display it at the last exit. Previously
General replacement
S/old/new--- Replace the first matching item of the current row
S/old/new/g---- Replace all the matching items in the current row
Number1, number2-s/old/new/g---- Replace all the matching items from the number1 row to the number2
1. Vim Mode
Vim has three modes: general mode, edit mode, and command line mode.
2. General Mode
Open a file with vim and enter the normal mode. In this mode, you can delete characters and lines and copy and paste the file data.
2.1 move the
Highlight keywords in VIM
syntax enableHighlighted keywords: usually followed bysyntax onEnable syntax highlighting
syntax clearClear keyword highlighting
When securecrt is not in xterminal mode, try it and it does not work. If it is in
Vimm (vimsual) is a full-screen editor used in Linux/Unix OS.
Vimm is divided into two states: command status and edit status. In command status, the entered character system performs command processing. For example, Q indicates that the system
From: http://blog.csdn.net/endall/archive/2007/08/29/1764554.aspx
The Regular Expression Function in VIM is very powerful. If you can use it freely, you can perform many unimaginable operations.
If you are familiar with regular expressions of Perl,
The following command is used to facilitate the review of this article because it is often difficult to read books.
If you cannot find the vim command in this article, see Linux Private food page278.
Vim has three modes: general mode, edit mode,
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
Problem description: Use gnome-terminal to open the file editing with vim and exit. The prompt becomes garbled.
Below are some suggestions from Google users.1. I have encountered this problem and changed locale to Lang = zh_cn.Lc_ctype = "zh_cn",
Reprinted from: http://blog.163.com/zhang_sheng_cun/blog/static/46288667200792604435190/
Http://hi.baidu.com/istang/blog/item/b8a38d6e0d0f1fd780cb4a2b.html
When you use vim to edit a terminal, by default, the editing interface does not display line
From: http://www.cnblogs.com/sunblackshine/archive/2011/08/25/2152962.html + http://easwy.com/blog/
With vim + cssag/ctags, You can implement the Source Insight function and conveniently view the Source code for analysis.
Key words: vim, cssag,
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