From Vim manual:
Option:1. tabstop: the number of spaces displayed for a tab. The default value is 8.2. softtabstop: the number of spaces in a tab during editing (for example, press the return or tab key... I didn't fully understand)3.
Setting set wrap in. vimrc is ineffective today. Later we found that gvim's configuration file is different from Vim's! No culture is terrible ......
First, the current user directory contains three files and folders.. VIM: this is the place
Ubuntu10.05 has been tossing for the past two days. It shows that wubi is unresponsive, and then grub errors occur during hard disk installation. After the installation is successful, it will take half a day to get a Chinese input method. It is
If you have been using Vim for a while, you will want to modify some of its configurations, such as displaying the row number by default. Where can I change it?
The answer is:Vimrc
Where is this configuration file?
Open your VI and enter [:
Why use Vim? Because it has the color display function, and also supports manyProgramSyntax. Vim can help you directly perform program debugging. However, after securecrt is connected to Linux, it is displayed as black and white, which is unpleasant
Some students prefer to use spaces for indentation. Therefore, manyCodeThe row capital contains consecutive and repeated spaces, some of which are four or even eight. Uncle can't bear it.
Vim has some options such as retab that can be used to
1. Use CD/to go to the file system;
2. Switch CD/etc/Vim to the Vim directory;
3. Modify the File Permission: sudo chmod 777 vimrc. You will be prompted to enter the password and enter the password;
4. Run Vim vimrc to open the vim file. The
Vim script. (Transfer)Remember that many ides in the window can annotate the entire code for testing. Restore it after testing. The corresponding functions are also implemented in Linux Vim today.Comment on a single row: ctrl_cComment on multiple
Because Vim itself is powerful and can use many commands, and can call external commands by executing colleagues, this makes it possible for us to customize tools and operations! Today, I will take Java compilation and execution as an example to
Vim(VI improved) is a text editor similar to VI, which adds many new features and functions based on VI. Vim has become a Linux/Unix environment with its powerful functions and customization capabilities.
Open SourceOne of the most important editors
If you just want to use the system clipboard, simply press SHIFT + inset (paste) in the input mode. Next let's talk about it.VimThe basic knowledge of the clipboard, if you are interested, you can look at it, it should be rewarded.VimThe help
I don't know if you have encountered such a need. When you use two windows (in Emacs or windows in VI) to write two files, you suddenly think that the content of the two forms (buffer) should be) swap it for easy viewing. In gvim, you can use ctrl-w
Document directory
Background
Basic knowledge
Preparations
Custom themes
My themes
Summary
Manually expand the vim plug-in-color
By Ma Dongliang (cream Loki)
One man's war (http://blog.csdn.net/MDL13412)Background
Anyone who has used a
X Delete the character under the cursor (abbreviated as "DL)X Delete the character before the cursor (abbreviation of "DH)D. delete from the current position to the end of the row (abbreviated as "d $)DW is deleted from the current position to the
The font is nice
G is Vim jump to the last line. gg jump to the top line.
Copy a row: yy P
Copy multiple rows: 1, 4 copy 6
Save command: savees D: 1.txt: %! Xxd ----> switch to hexadecimal display: %! Xxd-r ----> display by text Switch
Chinese
Use Vim to develop software projects-(2) sessions and viminfo
The help entry for the commands used in this section:: Help mksession
: Help 'sessionoptions'
: Help Source
: Help wviminfo
: Help rviminfo
: Help 'viminfo
Many software have this
Use Vim to replace SourceInsight (ctags + taglist +)
Use Vim to replace SourceInsight (ctags + taglist +)VImTags uses the example of CTAG Protocol If you do not study it, you can run the
Reprinted: http://andyss.blog.51cto.com/315552/131652
Syntax: [ADDR] S/source string/destination string/[Option] global replacement command: % S/source string/destination string/g
[ADDR]
Indicates the search range. If it is omitted, it indicates
Centos is located at:/etc/vimrc
1 if v: lang = ~ "Utf8 $" | v: lang = ~ UTF-8 $"2 set fileencodings = ucs-bom, UTF-8, latin13 endif4 syn on5 set number6 set nocompatible "Use Vim defaults (much better !)7 set bs = indent, eol, start "allow
Note: A simple method to determine whether a flag is of type is to observe it. If there is a space behind the flag and a flag behind the space, in C/C ++, it must be a type. So you can use a regular expression to determine.
After testing, the syntax
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.